How to call a solver only once at beginning of run

Numerical methods and mathematical models of Elmer
Post Reply
denis.cohen
Posts: 56
Joined: 15 Dec 2010, 13:50

How to call a solver only once at beginning of run

Post by denis.cohen »

Hi,

I need to create a new solver to initialize a temperature field. This initialization needs information from a solver which is part of ElmerIce (FlowDepthSolver).
I call the new solver after FlowDepthSolver but it needs to be run only once at the beginning of the run.
Is there a keyword for Exec Solver to obtain this behavior?

Thank you

Denis
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: How to call a solver only once at beginning of run

Post by raback »

Hi Denis

To my knowledge no. Perhaps you could add a construct

Code: Select all

  LOGICAL :: Visited = .FALSE.
  SAVE Visited
  
  IF(Visited) RETURN
  Visited = .TRUE.
  ...
-Peter
Post Reply