Changeset 21569


Ignore:
Timestamp:
02/21/17 17:43:58 (8 years ago)
Author:
glperez
Message:

FIX: Fixing 'isnan' issue in AD and Getting a Specific Version of Adjoinable MPI

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/adjoinablempi/install.sh

    r17280 r21569  
    66
    77#Mercurial cloning:
    8 hg clone http://mercurial.mcs.anl.gov//ad/AdjoinableMPI src
     8hg clone -r 268 http://mercurial.mcs.anl.gov//ad/AdjoinableMPI src
    99
    1010#Configure adjoinablempi
  • issm/trunk-jpl/src/c/solutionsequences/solutionsequence_linear.cpp

    r21510 r21569  
    4747        nF=pf->Norm(NORM_TWO);
    4848        solver_residue=nKUF/nF;
    49         if(isnan(solver_residue_threshold) == false && solver_residue>solver_residue_threshold)_error_("   solver residue too high!: norm(KU-F)/norm(F)=" << solver_residue << "\n");
     49
     50#ifdef _HAVE_ADOLC_
     51        if(!isnan(solver_residue_threshold.getValue()) && solver_residue>solver_residue_threshold)_error_("   solver residue too high!: norm(KU-F)/norm(F)=" << solver_residue << "\n");
     52#else
     53        if(!isnan(solver_residue_threshold) && solver_residue>solver_residue_threshold)_error_("   solver residue too high!: norm(KU-F)/norm(F)=" << solver_residue << "\n");
     54#endif
     55
    5056
    5157        //clean up
Note: See TracChangeset for help on using the changeset viewer.