diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2011-12-15 17:52:22 +0100 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2011-12-15 17:52:22 +0100 |
commit | 77f157f6b3aa32672889b8353019a89d7cf874d7 (patch) | |
tree | 73037cf86d2792a4878ddb86b50487421e36a9d1 /Examples/Advect/src/RegisterSymmetries.cc | |
parent | 2b992b0b1314d90e74c25a80e6dda870edf554c0 (diff) |
Advect example: Add generated thorn
Diffstat (limited to 'Examples/Advect/src/RegisterSymmetries.cc')
-rw-r--r-- | Examples/Advect/src/RegisterSymmetries.cc | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/Examples/Advect/src/RegisterSymmetries.cc b/Examples/Advect/src/RegisterSymmetries.cc new file mode 100644 index 0000000..0318c32 --- /dev/null +++ b/Examples/Advect/src/RegisterSymmetries.cc @@ -0,0 +1,69 @@ +/* File produced by Kranc */ + +#include "cctk.h" +#include "cctk_Arguments.h" +#include "cctk_Parameters.h" +#include "Symmetry.h" + +extern "C" void Advect_RegisterSymmetries(CCTK_ARGUMENTS) +{ + DECLARE_CCTK_ARGUMENTS; + DECLARE_CCTK_PARAMETERS; + + + /* array holding symmetry definitions */ + CCTK_INT sym[3]; + + + /* Register symmetries of grid functions */ + sym[0] = 1; + sym[1] = 1; + sym[2] = 1; + SetCartSymVN(cctkGH, sym, "Advect::rho"); + + sym[0] = -1; + sym[1] = 1; + sym[2] = 1; + SetCartSymVN(cctkGH, sym, "Advect::F2rho1"); + + sym[0] = 1; + sym[1] = -1; + sym[2] = 1; + SetCartSymVN(cctkGH, sym, "Advect::F2rho2"); + + sym[0] = 1; + sym[1] = 1; + sym[2] = -1; + SetCartSymVN(cctkGH, sym, "Advect::F2rho3"); + + sym[0] = -1; + sym[1] = 1; + sym[2] = 1; + SetCartSymVN(cctkGH, sym, "Advect::Frho1"); + + sym[0] = 1; + sym[1] = -1; + sym[2] = 1; + SetCartSymVN(cctkGH, sym, "Advect::Frho2"); + + sym[0] = 1; + sym[1] = 1; + sym[2] = -1; + SetCartSymVN(cctkGH, sym, "Advect::Frho3"); + + sym[0] = -1; + sym[1] = 1; + sym[2] = 1; + SetCartSymVN(cctkGH, sym, "Advect::v1"); + + sym[0] = 1; + sym[1] = -1; + sym[2] = 1; + SetCartSymVN(cctkGH, sym, "Advect::v2"); + + sym[0] = 1; + sym[1] = 1; + sym[2] = -1; + SetCartSymVN(cctkGH, sym, "Advect::v3"); + +} |