[ET Trac] [Einstein Toolkit] #1825: CCTK_ImpFromVarI sometimes returns the thorn name

Einstein Toolkit trac-noreply at einsteintoolkit.org
Mon Oct 19 13:12:01 CDT 2015


#1825: CCTK_ImpFromVarI sometimes returns the thorn name
---------------------+------------------------------------------------------
 Reporter:  sbrandt  |       Owner:                     
     Type:  defect   |      Status:  new                
 Priority:  minor    |   Milestone:                     
Component:  Other    |     Version:  development version
 Keywords:           |  
---------------------+------------------------------------------------------
 I added the following debug code to one of my routines
 {{{
   int n = CCTK_NumVars();
   for(int v=0; v < n; ++v) {
     void *data = CCTK_VarDataPtrI(cctkGH,0,v);
     if(data == 0) continue;
     std::string imp = CCTK_ImpFromVarI(v);
     std::cout << "DEBUG: " << imp << "::" << CCTK_VarName(v) << std::endl;
   }
 }}}

 I get the following correct output from CartGrid3D
 DEBUG: GRID::x
 DEBUG: GRID::y
 DEBUG: GRID::z
 DEBUG: GRID::r

 However, I see this output from CarpetReduce
 DEBUG: CARPETREDUCE::weight
 DEBUG: CARPETREDUCE::excised_cells

 And I expected to see "REDUCE::weight"

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1825>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list