AnisoSurfaceWaveSynthetic.cpp

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

Generated on Tue Nov 3 13:24:13 2009 for GPLIB++ by  doxygen 1.5.8