<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">All<div class=""><br class=""></div><div class="">Has anyone tried to construct a non-linear problem using adaptive time stepping.</div><div class=""><br class=""></div><div class="">My Resolution looks like :</div><div class=""><br class=""></div><div class=""><div class=""><font face="Courier" class="">/*</font></div><div class=""><font face="Courier" class="">-----------------------------------------------------------------------------------------</font></div><div class=""><font face="Courier" class="">Step 10 - Resolution of the problem</font></div><div class=""><font face="Courier" class="">1] The resolution is setup to solve non-linear problems</font></div><div class=""><font face="Courier" class=""> */</font></div><div class=""><font face="Courier" class="">Resolution </font></div><div class=""><font face="Courier" class="">{</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>{</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Name NonLinear;</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>System </font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>{</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>{ Name U ; NameOfFormulation ElectroThermal ; }</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>{ Name T ; NameOfFormulation HeatTransfer ; }</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>}</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Operation </font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>{</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>InitSolution [ T ] ; SaveSolution [ T ] ;</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Generate [ U ] ; Solve [ U ]; SaveSolution [ U ] ;</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>TimeLoopAdaptive[ tStart, tStop, dtInit, dtMin, dtMax, Method, List[Breakpoints],</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>System </font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>{</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span> { T, Treltol, Tabstol, LinfNorm }</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span> { U, Ureltol, Uabstol, LinfNorm }</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>}</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span> ]</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>{</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>IterativeLoop [nlMaxIter, nlEps, nlRelax] </font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>{</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>GenerateJac[T]; SolveJac[T];</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>GenerateJac[U]; SolveJac[U];</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>}</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>SaveSolution [ T ];</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>SaveSolution [ U ];</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>}</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>}</font></div><div class=""><font face="Courier" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>}</font></div><div class=""><font face="Courier" class="">}</font></div><div class=""><font face="Courier" class="">// end: Resolution</font></div></div><div class=""><br class=""></div><div class="">And this delivers a syntax error within Gmsh.</div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>