aboutsummaryrefslogtreecommitdiff
path: root/src/SetStressEnergyState.F90
diff options
context:
space:
mode:
authorschnetter <schnetter@b83b3108-af97-48ba-8c81-9293ccf7f924>2009-09-28 18:13:48 +0000
committerschnetter <schnetter@b83b3108-af97-48ba-8c81-9293ccf7f924>2009-09-28 18:13:48 +0000
commit1198ef6e175f651646fb7989e8cdce06d424d684 (patch)
treea12b5980e3986e7f579db332a0e809c1f602c7a9 /src/SetStressEnergyState.F90
parentbcf804124910ccb0643e23ee6f7be30a768a1486 (diff)
Move thorn TmunuBase from AEIThorns to CactusEinstein.
Thorn TmunuBase provides grid functions for the stress-energy tensor T_ab. This allows spacetime codes to be independent of hydrodynamics formulations, or other formulations contributing to the stress-energy tensor. TmunuBase is backwards compatible with the old CalcTmunu.inc mechanism. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/TmunuBase/trunk@2 b83b3108-af97-48ba-8c81-9293ccf7f924
Diffstat (limited to 'src/SetStressEnergyState.F90')
-rw-r--r--src/SetStressEnergyState.F9020
1 files changed, 20 insertions, 0 deletions
diff --git a/src/SetStressEnergyState.F90 b/src/SetStressEnergyState.F90
new file mode 100644
index 0000000..2418555
--- /dev/null
+++ b/src/SetStressEnergyState.F90
@@ -0,0 +1,20 @@
+#include "cctk.h"
+#include "cctk_Arguments.h"
+#include "cctk_Parameters.h"
+
+
+
+! Set the stress energy (storage) state grid scalar from the parameter.
+
+subroutine TmunuBase_SetStressEnergyState (CCTK_ARGUMENTS)
+ implicit none
+ DECLARE_CCTK_ARGUMENTS
+ DECLARE_CCTK_PARAMETERS
+
+ stress_energy_state = stress_energy_storage
+ if (support_old_CalcTmunu_mechanism /= 0) then
+ stress_energy_2_state = stress_energy_state
+ else
+ stress_energy_2_state = 0
+ end if
+end subroutine TmunuBase_SetStressEnergyState