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

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

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

revision 3396 by caltinay, Tue Nov 16 06:35:06 2010 UTC revision 3397 by caltinay, Sun Dec 5 22:46:25 2010 UTC
# Line 253  bool EscriptDataset::saveSilo(string fil Line 253  bool EscriptDataset::saveSilo(string fil
253      PMPIO_baton_t* baton = NULL;      PMPIO_baton_t* baton = NULL;
254  #endif  #endif
255    
256      if (fileName.compare(fileName.length()-5, 5,".silo") != 0) {      if (fileName.length() < 6 || fileName.compare(fileName.length()-5, 5, ".silo") != 0) {
257          fileName+=".silo";          fileName+=".silo";
258      }      }
259    
# Line 452  bool EscriptDataset::saveVTK(string file Line 452  bool EscriptDataset::saveVTK(string file
452          }          }
453      }      }
454    
455      if (fileName.compare(fileName.length()-4, 4,".vtu") != 0) {      if (fileName.length() < 5 || fileName.compare(fileName.length()-4, 4, ".vtu") != 0) {
456          fileName+=".vtu";          fileName+=".vtu";
457      }      }
458    

Legend:
Removed from v.3396  
changed lines
  Added in v.3397

  ViewVC Help
Powered by ViewVC 1.1.26