Ignore:
Timestamp:
09/25/09 17:00:28 (15 years ago)
Author:
Mathieu Morlighem
Message:

renamed debug -> verbose

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/parallel/ControlInitialization.cpp

    r2316 r2330  
    3434
    3535        /*flags: */
    36         int debug=0;
     36        int verbose=0;
    3737        int dim=-1;
    3838        int ishutter=0;
     
    5454
    5555        /*first recover parameters common to all solutions:*/
    56         model->FindParam(&debug,"debug");
     56        model->FindParam(&verbose,"verbose");
    5757        model->FindParam(&dim,"dim");
    5858        model->FindParam(&ishutter,"ishutter");
     
    8383
    8484        //compute slopes
    85         if(debug)_printf_("%s\n","computing bed slope (x and y derivatives)...");
     85        if(verbose)_printf_("%s\n","computing bed slope (x and y derivatives)...");
    8686        diagnostic_core_linear(&slopex,fem_sl,inputs,SlopeComputeAnalysisEnum(),BedXAnalysisEnum());
    8787        diagnostic_core_linear(&slopey,fem_sl,inputs,SlopeComputeAnalysisEnum(),BedYAnalysisEnum());
     
    9797
    9898        //horizontal velocity
    99         if(debug)_printf_("%s\n"," computing horizontal velocities...");
     99        if(verbose)_printf_("%s\n"," computing horizontal velocities...");
    100100        diagnostic_core_nonlinear(&ug,NULL,NULL,NULL,fem_dh,inputs,DiagnosticAnalysisEnum(),HorizAnalysisEnum());
    101         if(debug)_printf_("%s\n"," extruding horizontal velocities...");
     101        if(verbose)_printf_("%s\n"," extruding horizontal velocities...");
    102102        VecDuplicatePatch(&ug_horiz,ug); FieldExtrudex( ug_horiz,fem_dh->elements,fem_dh->nodes, fem_dh->loads,fem_dh-> materials,"velocity",1);
    103103
    104104        //vertical velocity
    105         if(debug)_printf_("%s\n"," computing vertical velocities...");
     105        if(verbose)_printf_("%s\n"," computing vertical velocities...");
    106106        inputs->Add("velocity",ug_horiz,numberofdofspernode_dh,numberofnodes);
    107107        diagnostic_core_linear(&ug_vert,fem_dv,inputs,DiagnosticAnalysisEnum(),VertAnalysisEnum());
    108108
    109109        //Create 3d u_g
    110         if(debug)_printf_("%s\n"," combining horizontal and vertical velocities...");
     110        if(verbose)_printf_("%s\n"," combining horizontal and vertical velocities...");
    111111        VecFree(&ug); ug=NewVec(numberofnodes*3);
    112112        xfree((void**)&dofset);dofset=dofsetgen(2,&dof01[0],3,numberofnodes*3); VecMerge(ug,ug_horiz,dofset,numberofnodes*2);
     
    115115
    116116        //Create 4d u_g
    117         if(debug)_printf_("%s\n"," computing pressure according to Pattyn...");
     117        if(verbose)_printf_("%s\n"," computing pressure according to Pattyn...");
    118118        ComputePressurex( &pg,fem_dh->elements, fem_dh->nodes, fem_dh->loads,  fem_dh->materials, numberofnodes);
    119119        VecScale(pg,1.0/stokesreconditioning);
     
    127127
    128128        //update spcs
    129         if(debug)_printf_("%s\n"," update boundary conditions for stokes using velocities previously computed...");
     129        if(verbose)_printf_("%s\n"," update boundary conditions for stokes using velocities previously computed...");
    130130        xfree((void**)&dofset);dofset=dofsetgen(3,dof012,4,numberofnodes*4); VecMerge(fem_ds->yg->vector,ug,dofset,3*numberofnodes);
    131131       
     
    134134
    135135        //Compute Stokes velocities to speed up later runs
    136         if(debug)_printf_("%s\n"," computing stokes velocities and pressure ...");
     136        if(verbose)_printf_("%s\n"," computing stokes velocities and pressure ...");
    137137        VecFree(&ug);
    138138        diagnostic_core_nonlinear(&ug,NULL,NULL,NULL,fem_ds,inputs,DiagnosticAnalysisEnum(),StokesAnalysisEnum());
Note: See TracChangeset for help on using the changeset viewer.