GPLIB++
mod2asc96.cpp
Go to the documentation of this file.
1 #include <iostream>
2 #include <string>
3 #include "SurfaceWaveModel.h"
4 #include "Sdisp96Model.h"
5 
6 using namespace std;
7 using namespace gplib;
8 
9 int main()
10  {
11  string infilename;
12 
13  cout << "Input file: ";
14  cin >> infilename;
15  string outfilename(infilename+".asc96");
16 
17  SurfaceWaveModel InFormat;
18  InFormat.ReadModel(infilename);
19  Sdisp96Model OutFormat(InFormat);
20 
21  OutFormat.WriteModel(outfilename);
22  }
23 
A class to store 1D model for calculation of synthetic surface wave data.
This class can write files specific for the synthetic surface wave codes that are part of the compute...
Definition: Sdisp96Model.h:12
int main()
Definition: mod2asc96.cpp:9
virtual void WriteModel(const std::string &filename) const
Write them model to a file so that the forward codes can use it.
virtual void ReadModel(const std::string &filename)=0
Read a model from a file.