40 #if defined(_MSC_VER) && BOOST_VERSION > 104700
48 int main(
int argc,
char *argv[])
70 Mvdir(
"Save",WaveForce);
74 Mvdir(
"Save_Outer",WaveForce);
81 catch (
const std::runtime_error&)
86 catch (
const std::string& eStr)
88 cout <<
"Error: " << eStr << endl;
95 string saveOuterIter =
"mv -f OuterIter.his "+ dir;
96 if(system(saveOuterIter.c_str()))
98 ASSERTL0(
false,saveOuterIter.c_str());
102 string newdir = dir + boost::lexical_cast<std::string>(dir_ending);
103 string syscall =
"mv -f " + dir +
" " + newdir;
105 if(system(syscall.c_str()))
111 syscall =
"mkdir " + dir;
112 system(syscall.c_str());
127 bool exit_iteration =
false;
129 while(exit_iteration ==
false)
150 cout <<
"Failed to converge growth rate in" <<
158 if(exit_iteration ==
false)
166 exit_iteration =
true;
175 bool exit_iteration =
false;
189 while(exit_iteration ==
false)
210 cout <<
"Failed to converge growth rate in" <<
220 cout <<
"m_alpha[0] is " << vwi.
GetAlpha() << endl;
222 if(exit_iteration ==
false)
232 if((exit_iteration ==
true) && (init_search == 1))
238 exit_iteration =
false;
244 exit_iteration =
true;
265 bool exit_iteration =
false;
267 while(exit_iteration ==
false)
269 bool exit_alphaIter =
false;
281 if(exit_alphaIter ==
false)
296 cout <<
"Failed to converge growth rate in" <<
302 vwi.
MoveFile(
"AlphaIter.his",
"Save_Outer", nouter_iter);
311 exit_iteration =
true;
318 exit_iteration =
true;
324 ASSERTL0(
false,
"Unknown iteration type");
#define ASSERTL0(condition, msg)
int GetMinInnerIterations(void)
NekDouble GetWaveForceMagStep(void)
void MoveFile(string fileend, string dir, int n)
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 UpdateWaveForceMag(int n)
NekDouble GetAlphaStep(void)
void DoFixedForcingIteration(VortexWaveInteraction &vwi)
int main(int argc, char *argv[])
int GetNOuterIterations(void)
void CalcNonLinearWaveForce(void)
void SetMinInnerIterations(int niter)
void SetWaveForceMag(NekDouble mag)
NekDouble GetEigRelTol(void)
void SaveLoopDetails(string dir, int i)
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)