diff options
Diffstat (limited to 'src/EOS_Omni_Names.cpp')
-rw-r--r-- | src/EOS_Omni_Names.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/EOS_Omni_Names.cpp b/src/EOS_Omni_Names.cpp new file mode 100644 index 0000000..af910bb --- /dev/null +++ b/src/EOS_Omni_Names.cpp @@ -0,0 +1,15 @@ +#include <cctk.h> +#include <cctk_Arguments.h> +#include <cctk_Parameters.h> + +CCTK_INT EOS_Omni_GetHandle(CCTK_STRING name) +{ + if (CCTK_EQUALS(name, "2D_Polytrope")) + return 1; + if (CCTK_EQUALS(name, "Ideal_Fluid")) + return 2; + if (CCTK_EQUALS(name, "Hybrid")) + return 3; + return 0; +} + |