41 #if defined(_MSC_VER) && BOOST_VERSION > 104700
49 int main(
int argc,
char *argv[])
71 Mvdir(
"Save",WaveForce);
75 Mvdir(
"Save_Outer",WaveForce);
82 catch (
const std::runtime_error&)
87 catch (
const std::string& eStr)
89 cout <<
"Error: " << eStr << endl;
96 string saveOuterIter =
"mv -f OuterIter.his "+ dir;
97 if(system(saveOuterIter.c_str()))
99 ASSERTL0(
false,saveOuterIter.c_str());
103 string newdir = dir + boost::lexical_cast<std::string>(dir_ending);
104 string syscall =
"mv -f " + dir +
" " + newdir;
106 if(system(syscall.c_str()))
112 syscall =
"mkdir " + dir;
113 system(syscall.c_str());
128 bool exit_iteration =
false;
130 while(exit_iteration ==
false)
151 cout <<
"Failed to converge growth rate in" <<
159 if(exit_iteration ==
false)
167 exit_iteration =
true;
176 bool exit_iteration =
false;
190 while(exit_iteration ==
false)
211 cout <<
"Failed to converge growth rate in" <<
221 cout <<
"m_alpha[0] is " << vwi.
GetAlpha() << endl;
223 if(exit_iteration ==
false)
233 if((exit_iteration ==
true) && (init_search == 1))
239 exit_iteration =
false;
245 exit_iteration =
true;
266 bool exit_iteration =
false;
268 while(exit_iteration ==
false)
270 bool exit_alphaIter =
false;
282 if(exit_alphaIter ==
false)
297 cout <<
"Failed to converge growth rate in" <<
303 vwi.
MoveFile(
"AlphaIter.his",
"Save_Outer", nouter_iter);
312 exit_iteration =
true;
319 exit_iteration =
true;
325 ASSERTL0(
false,
"Unknown iteration type");
#define ASSERTL0(condition, msg)
int GetMinInnerIterations(void)
NekDouble GetWaveForceMagStep(void)
void ExecuteLoop(bool CalcWaveForce=true)
bool CheckEigIsStationary(bool reset=false)
VWIIterationType GetVWIIterationType(void)
void SetEigRelTol(NekDouble tol)
NekDouble GetWaveForceMag(void)
void UpdateDAlphaDWaveForceMag(NekDouble alphainit)
void SetAlpha(NekDouble alpha)
void MoveFile(std::string fileend, std::string dir, int n)
void UpdateWaveForceMag(int n)
NekDouble GetAlphaStep(void)
void DoFixedForcingIteration(VortexWaveInteraction &vwi)
void SaveLoopDetails(std::string dir, int i)
int main(int argc, char *argv[])
int GetNOuterIterations(void)
void CalcNonLinearWaveForce(void)
void SetMinInnerIterations(int niter)
void SetWaveForceMag(NekDouble mag)
NekDouble GetEigRelTol(void)
void SetPrevAlpha(NekDouble alpha)
int GetMaxWaveForceMagIter(void)
void Mvdir(string dir, NekDouble dir_ending)
NekDouble GetPrevAlpha(void)
void AppendEvlToFile(std::string file, int n)
bool IfIterInterface(void)
bool CheckIfAtNeutralPoint(void)
int GetMaxOuterIterations(void)