Ignore:
Timestamp:
06/22/12 16:56:14 (13 years ago)
Author:
Mathieu Morlighem
Message:

Starting to replace _printf by _pprintString

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/solutions/transient_core.cpp

    r12493 r12515  
    8686                femmodel->parameters->SetParam(step,StepEnum);
    8787
    88                 _printf_(VerboseSolution(),"iteration %i/%g  time [yr]: %-7.3g (time step: %.2g)\n",step,floor((finaltime-time)/dt)+step,time/yts,dt/yts);
     88                if(VerboseSolution()) _pprintLine_("iteration " << step << "/" << floor((finaltime-time)/dt)+step << "  time [yr]: " << time/yts << "7.3g (time step: " << dt/yts << "2g)");
    8989                if(step%output_frequency==0 || time==finaltime)
    9090                 save_results=true;
     
    9494
    9595                if(isthermal && dim==3){
    96                         _printf_(VerboseSolution(),"   computing temperatures\n");
     96                        if(VerboseSolution()) _pprintLine_("   computing temperatures");
    9797                        #ifdef _HAVE_THERMAL_
    9898                        if(isenthalpy==0){
     
    108108
    109109                if(isdiagnostic){
    110                         _printf_(VerboseSolution(),"   computing new velocity\n");
     110                        if(VerboseSolution()) _pprintLine_("   computing new velocity");
    111111                        #ifdef _HAVE_DIAGNOSTIC_
    112112                        diagnostic_core(femmodel);
     
    117117
    118118                if(isprognostic){
    119                         _printf_(VerboseSolution(),"   computing new thickness\n");
     119                        if(VerboseSolution()) _pprintLine_("   computing new thickness");
    120120                        prognostic_core(femmodel);
    121                         _printf_(VerboseSolution(),"   updating vertices positions\n");
     121                        if(VerboseSolution()) _pprintLine_("   updating vertices positions");
    122122                        UpdateVertexPositionsx(femmodel->elements, femmodel->nodes,femmodel->vertices,femmodel->loads, femmodel->materials, femmodel->parameters);
    123123                }
    124124
    125125                if(isgroundingline){
    126                         _printf_(VerboseSolution(),"   computing new grounding line position\n");
     126                        if(VerboseSolution()) _pprintLine_("   computing new grounding line position");
    127127                        #ifdef _HAVE_GROUNDINGLINE_
    128128                        GroundinglineMigrationx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters);
     
    134134                /*unload results*/
    135135                if(save_results){
    136                         _printf_(VerboseSolution(),"   saving transient results\n");
     136                        if(VerboseSolution()) _pprintLine_("   saving transient results");
    137137                        InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,SurfaceEnum);
    138138                        InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,BedEnum);
     
    141141                        RequestedOutputsx(femmodel->results,femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,requested_outputs,numoutputs);
    142142
    143                         _printf_(VerboseSolution(),"   saving temporary results\n");
     143                        if(VerboseSolution()) _pprintLine_("   saving temporary results");
    144144                        OutputResultsx(femmodel->elements, femmodel->nodes, femmodel->vertices, femmodel->loads, femmodel->materials, femmodel->parameters,femmodel->results);
    145145                }
Note: See TracChangeset for help on using the changeset viewer.