mergesurface.cpp
Go to the documentation of this file.00001 #include "SurfaceWaveModel.h"
00002 #include <iostream>
00003 #include <string>
00004
00005 using namespace std;
00006
00007 int main()
00008 {
00009 SurfaceWaveModel Model,Background;
00010 string modelfilename, backgroundfilename;
00011 cout << "Foreground Model: ";
00012 cin >> modelfilename;
00013 Model.ReadModel(modelfilename);
00014 cout << "Background Model: ";
00015 cin >> backgroundfilename;
00016 Background.ReadModel(backgroundfilename);
00017 std::vector<double> periods;
00018 periods.push_back(10);
00019 periods.push_back(350);
00020 Model.MergeModel(Background);
00021 Model.WriteModel(modelfilename+".run.mod");
00022 Model.WriteRunFile(modelfilename+".run",periods);
00023 }