Skip to content

Commit 1b009cd

Browse files
committed
Merged with commit 322, rebased on next and added a working script to find initial conditions for SF configuration.
1 parent db72e4e commit 1b009cd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/field/field_factory.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ FieldFactory::FieldFactory(Mesh* localmesh, Options* opt)
230230
addGenerator("where", std::make_shared<FieldWhere>(nullptr, nullptr, nullptr));
231231

232232
// Variables from the grid file
233-
read_grid_variables(*this, *localmesh, nonconst_options);
233+
if (fieldmesh != nullptr) {
234+
read_grid_variables(*this, *fieldmesh, nonconst_options);
235+
}
234236
}
235237

236238
Field2D FieldFactory::create2D(const std::string& value, const Options* opt,

0 commit comments

Comments
 (0)