/[escript]/trunk/finley/src/CPPAdapter/FinleyError.cpp
ViewVC logotype

Diff of /trunk/finley/src/CPPAdapter/FinleyError.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3258 by jfenwick, Thu Jan 28 02:03:15 2010 UTC revision 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC
# Line 12  Line 12 
12  *******************************************************/  *******************************************************/
13    
14    
15  #ifdef PASO_MPI  #ifdef ESYS_MPI
16  #include <mpi.h>  #include <mpi.h>
17  #endif  #endif
18  #include "FinleyError.h"  #include "FinleyError.h"
# Line 40  namespace finley { Line 40  namespace finley {
40    }    }
41    void checkPasoError()    void checkPasoError()
42    {    {
43      if (Paso_noError()) {      if (Esys_noError()) {
44        return;        return;
45      } else {      } else {
46        //        //
47        // reset the error code to no error otherwise the next call to        // reset the error code to no error otherwise the next call to
48        // this function may resurrect a previous error        // this function may resurrect a previous error
49        Paso_resetError();        Esys_resetError();
50        throw FinleyAdapterException(Paso_getErrorMessage());        throw FinleyAdapterException(Esys_getErrorMessage());
51      }      }
52    }    }
53    

Legend:
Removed from v.3258  
changed lines
  Added in v.3259

  ViewVC Help
Powered by ViewVC 1.1.26