prisms-center / phaseField

PRISMS-PF: An Open-Source Phase-Field Modeling Framework
https://prisms-center.github.io/phaseField/
Other
230 stars 120 forks source link

Parameters in loading in initial conditions (issue #2) #142

Open david-montiel-t opened 5 years ago

david-montiel-t commented 5 years ago

In parameters.in

Whenever reading multiple variables from multiple .vtk files generated in parallel, the code may get stuck in execution.

For example, loading four variables as shown in the example below will not work:

# Whether to load intial conditions set Load initial conditions = true,true,true,true

# Whether each processor should read its own file set Load parallel file = true,true,true,true

# Names of the files to be read without the file extension (assumed to be in the app directory) set File names = solution-20000,solution-20000,solution-20000,solution-20000

# Names of the variables in the file being read (may differ from the model variable names) set Variable names in the files = n0,n1,n2,n3

Here, solution-20000 represents a group of files generated by a PRISMS-PF application running on 64 cores, i.e.:

{solution-20000.0.vtk, solution-20000.1,vtk, solution-20000.2.vtk,..., solution-20000.63,vtk}