AnisoSurfaceWaveSynthetic.cpp

Go to the documentation of this file.
00001 #include "AnisoSurfaceWaveSynthetic.h"
00002 namespace gplib
00003   {
00004 void AnisoSurfaceWaveSynthetic::PreParallel(const std::string &filename)
00005   {
00006     Model->WriteRunFile(filename);
00007     Model->WriteModel(filename + ".mod");
00008   }
00009 
00010 ParkSurfaceWaveData AnisoSurfaceWaveSynthetic::SafeParallel(
00011     const std::string &filename)
00012   {
00013     const std::string fullname = filename;
00014     system(("chmod u+x " + fullname).c_str());
00015     system(("./" + fullname).c_str());
00016     SynthData.ReadAscii(fullname + ".cvel");
00017     system(("rm -r " + fullname + "*").c_str());
00018     return SynthData;
00019   }
00020 
00021 ParkSurfaceWaveData AnisoSurfaceWaveSynthetic::GetSynthData(
00022     const std::string &filename)
00023   {
00024     PreParallel(filename);
00025     return SafeParallel(filename);
00026   }
00027 
00028 AnisoSurfaceWaveSynthetic::AnisoSurfaceWaveSynthetic()
00029   {
00030   }
00031 
00032 AnisoSurfaceWaveSynthetic::~AnisoSurfaceWaveSynthetic()
00033   {
00034   }
00035 
00036 }

Generated on Tue May 4 16:52:14 2010 for GPLIB++ by  doxygen 1.5.8