Skip to content

Commit

Permalink
refs #7200 rewritten existing MDEventFactory using TMD as example
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed May 28, 2013
1 parent ae103e9 commit 4bd6f1a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Code/Mantid/Framework/MDEvents/src/MDEventFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ namespace Mantid
{
namespace MDEvents
{
std::vector<MDEventFactory::fpCreateBox> MDEventFactory::boxCreatorFP(4*MDEventFactory::MAX_MD_DIMENSIONS_NUM,NULL);
std::vector<MDEventFactory::fpCreateMDWS> MDEventFactory::wsCreatorFP(MDEventFactory::MAX_MD_DIMENSIONS_NUM,NULL);
std::vector<MDEventFactory::fpCreateBox> MDEventFactory::boxCreatorFP(4*(MDEventFactory::MAX_MD_DIMENSIONS_NUM+1),NULL);
std::vector<MDEventFactory::fpCreateMDWS> MDEventFactory::wsCreatorFP(MDEventFactory::MAX_MD_DIMENSIONS_NUM+1,NULL);


template<size_t nd>
Expand Down Expand Up @@ -239,6 +239,10 @@ namespace Mantid
class LOOP
{
public:
LOOP()
{
LOOP::EXEC();
}
static inline void EXEC()
{
LOOP< nd-1 >::EXEC();
Expand All @@ -251,6 +255,7 @@ namespace Mantid
class LOOP<0>
{
public:
LOOP(){}
static inline void EXEC()
{
MDEventFactory::wsCreatorFP[0] = &MDEventFactory::createMDWorkspaceND<0>;
Expand Down

0 comments on commit 4bd6f1a

Please sign in to comment.