Changeset 3820


Ignore:
Timestamp:
05/18/10 14:00:16 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added checks in convergence

Location:
issm/trunk/src/c/parallel
Files:
2 edited

Legend:

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

    r3751 r3820  
    3030        int    verbose;
    3131        double yts;
     32
     33        /*Check arguments*/
     34        ISSMASSERT(Kff && pf && uf && old_uf);
    3235
    3336        /*get convergence options*/
     
    6568        res=nKUoldF/nF;
    6669        if (isnan(res)){
    67                 PetscSynchronizedPrintf(MPI_COMM_WORLD,"norm nf %lf \n",nF);
    68                 PetscSynchronizedFlush(MPI_COMM_WORLD);
    69 
    70                 PetscSynchronizedPrintf(MPI_COMM_WORLD,"norm kuold %lf \n",nKUoldF);
    71                 PetscSynchronizedFlush(MPI_COMM_WORLD);
     70                _printf_("norm nf = %lf and norm kuold = %lf\n",nF,nKUoldF);
    7271                ISSMERROR("mechanical equilibrium convergence criterion is NaN!");
    7372        }
  • issm/trunk/src/c/parallel/diagnostic_core_nonlinear.cpp

    r3751 r3820  
    102102                PenaltyConstraintsx(&constraints_converged, &num_unstable_constraints, fem->elements,fem->nodes,fem->vertices,loads,fem->materials,fem->parameters,analysis_type,sub_analysis_type);
    103103
    104                 //if(verbose)_printf_("   number of unstable constraints: %i\n",num_unstable_constraints);
    105                 _printf_("   number of unstable constraints: %i\n",num_unstable_constraints);
     104                if(verbose)_printf_("   number of unstable constraints: %i\n",num_unstable_constraints);
    106105
    107106                /*Figure out if convergence is reached.*/
     
    127126                        break;
    128127                }
    129 
    130128        }
    131129
    132         //more output might be needed, when running in control.c
     130        //more output might be needed, when running in control
    133131        if(pKff0){
    134132
Note: See TracChangeset for help on using the changeset viewer.