mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-16 14:57:05 +01:00
Hadrons: modules remember their factory registration name
This commit is contained in:
@ -72,6 +72,8 @@ public:
|
||||
virtual void execute(void);
|
||||
};
|
||||
|
||||
MODULE_REGISTER_NS(Meson, ARG(TMeson<FIMPL, FIMPL>), MContraction);
|
||||
|
||||
/******************************************************************************
|
||||
* TMeson implementation *
|
||||
******************************************************************************/
|
||||
@ -137,12 +139,8 @@ void TMeson<FImpl1, FImpl2>::execute(void)
|
||||
write(writer, "meson", result);
|
||||
}
|
||||
|
||||
typedef TMeson<FIMPL, FIMPL> Meson;
|
||||
|
||||
END_MODULE_NAMESPACE
|
||||
|
||||
MODULE_REGISTER_NS(Meson, MContraction);
|
||||
|
||||
END_HADRONS_NAMESPACE
|
||||
|
||||
#endif // Hadrons_Meson_hpp_
|
||||
|
Reference in New Issue
Block a user