[Commits] [svn:einsteintoolkit] Multipole/trunk/ (Rev. 63)

schnetter at cct.lsu.edu schnetter at cct.lsu.edu
Tue Jun 15 16:25:40 CDT 2010


User: eschnett
Date: 2010/06/15 04:25 PM

Modified:
 /trunk/
  param.ccl
 /trunk/src/
  multipole.cc

Log:
 Corrects parameter ranges and their description

File Changes:

Directory: /trunk/src/
======================

File [modified]: multipole.cc
Delta lines: +2 -2
===================================================================
--- trunk/src/multipole.cc	2010-06-14 08:09:00 UTC (rev 62)
+++ trunk/src/multipole.cc	2010-06-15 21:25:40 UTC (rev 63)
@@ -130,7 +130,7 @@
 
   if (CCTK_MyProc(cctkGH) == 0)
   {
-    if (out_1d_every != 0 && (cctk_iteration) % out_1d_every == 0)
+    if (out_1d_every != 0 && cctk_iteration % out_1d_every == 0)
     {
       const char *real_name = CCTK_VarName(v->index);
       sprintf(name_tmp, "mp_%s_r%1.2f.th.asc", real_name, rad);
@@ -280,7 +280,7 @@
   int i, array_size=(ntheta+1)*(nphi+1);
   CCTK_REAL real_lm = 0.0, imag_lm = 0.0;
 
-  if (cctk_iteration % out_every != 0)
+  if (out_every == 0 || cctk_iteration % out_every != 0)
     return;
 
   int lmax = get_l_max();

Directory: /trunk/
==================

File [modified]: param.ccl
Delta lines: +6 -4
===================================================================
--- trunk/param.ccl	2010-06-14 08:09:00 UTC (rev 62)
+++ trunk/param.ccl	2010-06-15 21:25:40 UTC (rev 63)
@@ -26,20 +26,22 @@
 CCTK_INT out_every "How often to output" \
 STEERABLE=recover
 {
-  * :: "Any integer"
+  0   :: "no output"
+  1:* :: "output every to many iterations"
 } 1
 
 CCTK_INT out_1d_every "How often to output 1d data" \
 STEERABLE=recover
 {
-  * :: "Any integer"
+  0   :: "no output"
+  1:* :: "output every to many iterations"
 } 0
 
 #physical params:
 CCTK_INT nradii "How many extraction radii?" \
 STEERABLE=recover
 {
-  0:101 :: "A positive integer less than 101"
+  0:100 :: ""
 } 1
 
 
@@ -58,7 +60,7 @@
 CCTK_INT nphi "How many points in the phi direction?" \
 STEERABLE=recover
 {
-  0:* :: "Positive please"
+  1:* :: ""
 } 100
 
 CCTK_STRING variables "What variables to decompose"



More information about the Commits mailing list