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

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

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

revision 6143 by jfenwick, Thu Mar 31 09:40:10 2016 UTC revision 6144 by caltinay, Wed Apr 6 05:25:13 2016 UTC
# Line 24  Line 24 
24    
25  #include <iostream>  #include <iostream>
26    
27  #if USE_SILO  #ifdef ESYS_HAVE_SILO
28  #include <silo.h>  #include <silo.h>
29  #endif  #endif
30    
# Line 222  bool SpeckleyDomain::writeToSilo(DBfile* Line 222  bool SpeckleyDomain::writeToSilo(DBfile*
222                                 const StringVec& labels, const StringVec& units,                                 const StringVec& labels, const StringVec& units,
223                                 bool writeMeshData)                                 bool writeMeshData)
224  {  {
225  #if USE_SILO  #ifdef ESYS_HAVE_SILO
226      // Write nodes, elements and mesh variables      // Write nodes, elements and mesh variables
227      if (!initialized      if (!initialized
228              || !cells->writeToSilo(dbfile, pathInSilo, labels, units, writeMeshData)              || !cells->writeToSilo(dbfile, pathInSilo, labels, units, writeMeshData)
# Line 232  bool SpeckleyDomain::writeToSilo(DBfile* Line 232  bool SpeckleyDomain::writeToSilo(DBfile*
232      siloPath = pathInSilo;      siloPath = pathInSilo;
233      return true;      return true;
234    
235  #else // !USE_SILO  #else // !ESYS_HAVE_SILO
236      std::cerr << "skipping writeToSilo, USE_SILO undefined\n";      std::cerr << "skipping writeToSilo, not built with Silo support\n";
237      return false;      return false;
238  #endif  #endif
239  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26