[ET Trac] [Einstein Toolkit] #1260: list registered variables when exceeding MoL accumulator limit

Einstein Toolkit trac-noreply at einsteintoolkit.org
Fri Feb 15 15:27:35 CST 2013


#1260: list registered variables when exceeding MoL accumulator limit
------------------------------------+---------------------------------------
  Reporter:  rhaas                  |       Owner:        
      Type:  enhancement            |      Status:  closed
  Priority:  minor                  |   Milestone:        
 Component:  EinsteinToolkit thorn  |     Version:        
Resolution:  fixed                  |    Keywords:  MoL   
------------------------------------+---------------------------------------

Comment (by rhaas):

 That would not help me. I want a single string that contains all the
 variable names. I get (from MoL) an array of variable indices. I want to
 turn it into a single string listing all the variable names, separated by
 spaces, terminated but a '\0'.

 I want what you would get form this C++ code:
 {{{
 ostringstream s;
 for(int i = 0 ; i < numvars ; i++) {
   char* varname = CCTK_FullName(VarIndex[i]);
   if(i > 0)
     s << " ";
   s << varname;
 }
 return s.str().c_str();
 }}}

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1260#comment:7>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list