Hello Elmer team
It’s more than a week that I’m studying up and down the ElmerSolver.src and its called subroutines but I still cannot grasp which routine really calls e.g. the solver “FolwSolve” and executes it. Is it “AddSolvers”, “AddEquation”, “ExecSimulation”, “SolveEquations”, “SolverActivate” or “ExecSolver”? Would you please give me some points on this subject?
Sincerely yours,
Zhanna Tarasova, Moscow, Russia
Execution of different solvers in ElemrSolver
Re: Execution of different solvers in ElemrSolver
Hi Zhanna,
typical call sequence might go like this:
ElmerSolver -> ExecSimulation -> SolveEquations -> SolverActivate ->
SingleSolver -> ExecSolver (-> DoExecSolver) -> FlowSolver
You won't find a direct reference to "FlowSolver" from the code, instead
memory address to this routine is stored in the Solver-structure
field called "Procedure".
Best Regards, Juha
typical call sequence might go like this:
ElmerSolver -> ExecSimulation -> SolveEquations -> SolverActivate ->
SingleSolver -> ExecSolver (-> DoExecSolver) -> FlowSolver
You won't find a direct reference to "FlowSolver" from the code, instead
memory address to this routine is stored in the Solver-structure
field called "Procedure".
Best Regards, Juha
Re: Execution of different solvers in ElemrSolver
I really appreciate for your kind answers Juha. And one more question, There is a DO loop in ElmerSolver which seems to be permanent (DO WHILE (.TRUE.)). What will break this loop and terminate the program when the solution is obtained?
Sincerely yours,
Zhanna Tarasova, Moscow, Russia
Sincerely yours,
Zhanna Tarasova, Moscow, Russia
Re: Execution of different solvers in ElemrSolver
Hi,
>What will break this loop and terminate the program when the solution is obtained?
IF ( .NOT.ReloadInputFile(CurrentModel) ) EXIT
The usual case is that the above statement exits the loop. The FALSE status from
the ReloadInputFile() function means that the input file has been read, and no more
"run" statements have been found (or the file has ended without "run").
Regards, Juha
>What will break this loop and terminate the program when the solution is obtained?
IF ( .NOT.ReloadInputFile(CurrentModel) ) EXIT
The usual case is that the above statement exits the loop. The FALSE status from
the ReloadInputFile() function means that the input file has been read, and no more
"run" statements have been found (or the file has ended without "run").
Regards, Juha