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/issm.cpp

    r12512 r12515  
    6060
    6161        /*First process inputs*/
    62         _printf_(true,"\n");
    63         _printf_(true,"Ice Sheet System Model (%s) version %s\n",PACKAGE_NAME,PACKAGE_VERSION);
    64         _printf_(true,"(website: %s contact: %s)\n",PACKAGE_URL,PACKAGE_BUGREPORT);
    65         _printf_(true,"\n");
     62        if(true) _pprintLine_("");
     63        if(true) _pprintLine_("Ice Sheet System Model (" << PACKAGE_NAME << ") version " << PACKAGE_VERSION);
     64        if(true) _pprintLine_("(website: " << PACKAGE_URL << " contact: " << PACKAGE_BUGREPORT << ")");
     65        if(true) _pprintLine_("");
    6666        ProcessArguments(&solution_type,&binfilename,&outbinfilename,&petscfilename,&lockfilename,argc,argv);
    6767
     
    100100        #endif
    101101
    102         _printf_(true,"call computational core:\n");
     102        if(true) _pprintLine_("call computational core:");
    103103        #ifdef _HAVE_MPI_
    104104        MPI_Barrier(MPI_COMM_WORLD); start_core=MPI_Wtime( );
     
    133133        #endif
    134134       
    135         _printf_(true,"write results to disk:\n");
     135        if(true) _pprintLine_("write results to disk:");
    136136        OutputResultsx(femmodel->elements, femmodel->nodes, femmodel->vertices, femmodel->loads, femmodel->materials, femmodel->parameters,femmodel->results);
    137137
     
    139139        pfclose(output_fid,lockfilename);
    140140        if (waitonlock>0){
    141                 _printf_(true,"write lock file:\n");
     141                if(true) _pprintLine_("write lock file:");
    142142                WriteLockFile(lockfilename);
    143143        }
     
    174174       
    175175        #ifdef _HAVE_PETSC_
    176         _printf_(true,"closing MPI and Petsc\n");
     176        if(true) _pprintLine_("closing MPI and Petsc");
    177177        PetscFinalize();
    178178        #else
    179179        #ifdef _HAVE_MPI_
    180         _printf_(true,"closing MPI and Petsc\n");
     180        if(true) _pprintLine_("closing MPI and Petsc");
    181181        MPI_Finalize();
    182182        #endif
Note: See TracChangeset for help on using the changeset viewer.