aboutsummaryrefslogtreecommitdiff
path: root/src/brilldata.F
diff options
context:
space:
mode:
authorallen <allen@a678b1cf-93e1-4b43-a69d-d43939e66649>2002-05-21 17:11:12 +0000
committerallen <allen@a678b1cf-93e1-4b43-a69d-d43939e66649>2002-05-21 17:11:12 +0000
commit0e0dde1285f0a401258ee2ba5b61feeca8562298 (patch)
treef4c5b03e76ce61ab6c166bb3f18b1e4dd6ecc570 /src/brilldata.F
parent3af6c4ef43c49b6b16c7fc4432adb374bbb8cf4a (diff)
Lots of tidying changes, parameter names have changed but hopefully clearer now.
Few more documentation changes still to come Constructing 3D data doesn't work, but this was also true before Einstein2 changes. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/IDBrillData/trunk@80 a678b1cf-93e1-4b43-a69d-d43939e66649
Diffstat (limited to 'src/brilldata.F')
-rw-r--r--src/brilldata.F30
1 files changed, 22 insertions, 8 deletions
diff --git a/src/brilldata.F b/src/brilldata.F
index 7dc01e0..3c91b97 100644
--- a/src/brilldata.F
+++ b/src/brilldata.F
@@ -46,22 +46,33 @@ c Get indices for grid functions.
call CCTK_VarIndex(iMcoeff,"idbrilldata::brillMlinear")
if (iMcoeff.lt.0) then
- call CCTK_WARN(0,"Grid variable index for Mcoeff not found")
+ call CCTK_WARN(0,"Grid variable index for brillMlinear not found")
end if
call CCTK_VarIndex(iNcoeff,"idbrilldata::brillNsource")
if (iNcoeff.lt.0) then
- call CCTK_WARN(0,"Grid variable index for Ncoeff not found")
+ call CCTK_WARN(0,"Grid variable index for brillNsource not found")
end if
c Set up background metric and coefficients for linear solve.
- if (axisym.eq.1) then
+ if (CCTK_EQUALS(initial_data,"brilldata2D")) then
call setupbrilldata2D(CCTK_ARGUMENTS)
else
call setupbrilldata3D(CCTK_ARGUMENTS)
end if
+ if (output_coeffs .eq. 1) then
+ call CCTK_OutputVarAs(ierr,cctkGH,"IDBrillData::brillMlinear","Debug_brillMlinear")
+ call CCTK_OutputVarAs(ierr,cctkGH,"IDBrillData::brillNsource","Debug_brillNsource")
+ call CCTK_OutputVarAs(ierr,cctkGH,"ADMBase::gxx","Debug_gxx")
+ call CCTK_OutputVarAs(ierr,cctkGH,"ADMBase::gxy","Debug_gxy")
+ call CCTK_OutputVarAs(ierr,cctkGH,"ADMBase::gxz","Debug_gxz")
+ call CCTK_OutputVarAs(ierr,cctkGH,"ADMBase::gyy","Debug_gyy")
+ call CCTK_OutputVarAs(ierr,cctkGH,"ADMBase::gyz","Debug_gyz")
+ call CCTK_OutputVarAs(ierr,cctkGH,"ADMBase::gzz","Debug_gzz")
+ end if
+
c Tolerances for elliptic solve.
AbsTol(1)= brill_thresh
@@ -74,14 +85,17 @@ c Tolerances for elliptic solve.
c Boundaries.
- call Ell_SetStrKey(ierr,"yes","EllLinConfMetric::Bnd::Robin")
- call Ell_SetRealKey(ierr,1.0D0,"EllLinConfMetric::Bnd::Robin::inf")
- call Ell_SetIntKey(ierr,1,"EllLinConfMetric::Bnd::Robin::falloff")
+ call Ell_SetStrKey(ierr,"yes","EllLinMetric::Bnd::Robin")
+ call Ell_SetRealKey(ierr,1.0D0,"EllLinMetric::Bnd::Robin::inf")
+ call Ell_SetIntKey(ierr,1,"EllLinMetric::Bnd::Robin::falloff")
+
+c Elliptic solver
-c Elliptic solver.
+c Just in case some solvers do not use the standard interface
+ conformal_state = 0
if (CCTK_EQUALS(brill_solver,"sor")) then
- call Ell_SetIntKey(ierr,sor_maxit,"Ell::SORmaxit");
+ call Ell_SetIntKey(ierr,sor_maxit,"Ell::SORmaxit")
call Ell_LinMetricSolver(ierr,cctkGH,
. metric_index,ipsi,iMcoeff,iNcoeff,AbsTol,RelTol,"sor")
else if (CCTK_EQUALS(brill_solver,"petsc")) then