diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-06-17 14:13:34 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-06-17 14:13:34 +0000 |
commit | b58cac0c9e065d18b3327a23e34598eae1174be3 (patch) | |
tree | 42c537e28be10601be4d24bfb1aef6d2d701451f /src/comm | |
parent | dec737ce7bd9d840dd8d37ed8e09dca1d2efa7b7 (diff) |
cGH.h: Add three new fields cctk_timefac, cctk_levoff, and
cctk_levoffdenom to the cGH structure that simplify handling
coordinates in mesh refinement settings.
cctk.h: Pass the new fields to Fortran routines. Add a new macro
CCTK_ORIGIN_SPACE to simplify using these fields.
CactusDefaultComm.c: Initialise the new fields.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3240 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/comm')
-rw-r--r-- | src/comm/CactusDefaultComm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/comm/CactusDefaultComm.c b/src/comm/CactusDefaultComm.c index cb11197c..128eb248 100644 --- a/src/comm/CactusDefaultComm.c +++ b/src/comm/CactusDefaultComm.c @@ -167,11 +167,14 @@ cGH *CactusDefaultSetupGH(tFleshConfig *config, int convergence_level) thisGH->cctk_bbox = malloc(2*cctk_dim*sizeof(int)); thisGH->cctk_nghostzones = malloc(2*cctk_dim*sizeof(int)); thisGH->cctk_levfac = malloc(cctk_dim*sizeof(int)); + thisGH->cctk_levoff = malloc(cctk_dim*sizeof(int)); + thisGH->cctk_levoffdenom = malloc(cctk_dim*sizeof(int)); thisGH->cctk_delta_space = malloc(cctk_dim*sizeof(CCTK_REAL)); /* FIXME : Next line goes when coords are done properly */ thisGH->cctk_origin_space = malloc(cctk_dim*sizeof(CCTK_REAL)); thisGH->cctk_delta_time = 1; + thisGH->cctk_timefac = 1; thisGH->cctk_convlevel = 0; n_variables = CCTK_NumVars(); @@ -214,6 +217,8 @@ cGH *CactusDefaultSetupGH(tFleshConfig *config, int convergence_level) thisGH->cctk_bbox && thisGH->cctk_nghostzones && thisGH->cctk_levfac && + thisGH->cctk_levoff && + thisGH->cctk_levoffdenom && thisGH->cctk_delta_space && thisGH->cctk_origin_space && thisGH->data && |