/[escript]/trunk/weipa/src/FinleyNodes.cpp
ViewVC logotype

Diff of /trunk/weipa/src/FinleyNodes.cpp

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

revision 6143 by caltinay, Sun Apr 3 23:36:59 2016 UTC revision 6144 by caltinay, Wed Apr 6 05:25:13 2016 UTC
# Line 28  Line 28 
28  using escript::DataTypes::index_t;  using escript::DataTypes::index_t;
29  #endif // VISIT_PLUGIN  #endif // VISIT_PLUGIN
30    
31  #if USE_NETCDF  #ifdef ESYS_HAVE_NETCDF
32  #include <netcdfcpp.h>  #include <netcdfcpp.h>
33  #endif  #endif
34    
35  #if USE_SILO  #ifdef ESYS_HAVE_SILO
36  #include <silo.h>  #include <silo.h>
37  #endif  #endif
38    
# Line 252  bool FinleyNodes::initFromFinley(const f Line 252  bool FinleyNodes::initFromFinley(const f
252  //  //
253  bool FinleyNodes::readFromNc(NcFile* ncFile)  bool FinleyNodes::readFromNc(NcFile* ncFile)
254  {  {
255  #if USE_NETCDF  #if ESYS_HAVE_NETCDF
256      NcAtt* att;      NcAtt* att;
257      NcVar* var;      NcVar* var;
258    
# Line 318  bool FinleyNodes::readFromNc(NcFile* ncF Line 318  bool FinleyNodes::readFromNc(NcFile* ncF
318      }      }
319    
320      return true;      return true;
321  #else // !USE_NETCDF  #else // !ESYS_HAVE_NETCDF
322      return false;      return false;
323  #endif  #endif
324  }  }
# Line 396  void FinleyNodes::writeCoordinatesVTK(os Line 396  void FinleyNodes::writeCoordinatesVTK(os
396  //  //
397  bool FinleyNodes::writeToSilo(DBfile* dbfile)  bool FinleyNodes::writeToSilo(DBfile* dbfile)
398  {  {
399  #if USE_SILO  #if ESYS_HAVE_SILO
400      if (numNodes == 0)      if (numNodes == 0)
401          return true;          return true;
402    
# Line 437  bool FinleyNodes::writeToSilo(DBfile* db Line 437  bool FinleyNodes::writeToSilo(DBfile* db
437      DBSetDir(dbfile, "/");      DBSetDir(dbfile, "/");
438      return (ret == 0);      return (ret == 0);
439    
440  #else // !USE_SILO  #else // !ESYS_HAVE_SILO
441      return false;      return false;
442  #endif  #endif
443  }  }

Legend:
Removed from v.6143  
changed lines
  Added in v.6144

  ViewVC Help
Powered by ViewVC 1.1.26