Amending athinput values in pgen #579
-
I could use some clarification on the startup chronology for the Mesh construction. Is it possible to change the dimensions of the Mesh as specified in the athinput file using the problem generator (specifically in InitUserMeshData)? e.g. if the input file specifies From a brief look over main.cpp I don't believe this is possible as the Mesh is constructed directly from the pinput object, but please correct me if it is wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sorry for my late response. Technically you can override the input parameters through the ParameterInput class, but the grid structure (and some other parameters) cannot be modified. In particular, the Mesh is already created when Mesh::InitUserMeshData is called. The best you can do is output an error message and stop the simulation. |
Beta Was this translation helpful? Give feedback.
Sorry for my late response.
Technically you can override the input parameters through the ParameterInput class, but the grid structure (and some other parameters) cannot be modified. In particular, the Mesh is already created when Mesh::InitUserMeshData is called. The best you can do is output an error message and stop the simulation.