GPLIB++
AnisoSurfaceWaveSynthetic.cpp
Go to the documentation of this file.
2 #include "Util.h"
3 
4 namespace gplib
5  {
6  void AnisoSurfaceWaveSynthetic::PreParallel(const std::string &filename)
7  {
8  Model->WriteRunFile(filename);
9  Model->WriteModel(filename + ".mod");
10  }
11 
13  const std::string &filename)
14  {
15  const std::string fullname = filename;
16  int result = std::system(("bash ./" + fullname).c_str());
17  SynthData.ReadAscii(fullname + ".cvel");
18  CleanFiles(fullname);
19  return SynthData;
20  }
21 
23  const std::string &filename)
24  {
25  PreParallel(filename);
26  return SafeParallel(filename);
27  }
28 
30  {
31  }
32 
34  {
35  }
36 
37  }
const ParkSurfaceWaveData & GetSynthData() const
ParkSurfaceWaveData SafeParallel(const std::string &filename)
void PreParallel(const std::string &filename)
virtual void ReadAscii(const std::string &filename)
Read a file in general ascii format, i.e lines with period velocity each.