Closed Peigen-L closed 1 year ago
Hi Peigen,
I suspect the error can be fixed by making this line. https://github.com/underworldcode/underworld2/blob/b72fc39337db6c36a68b585540262c14cc9fc59e/underworld/UWGeodynamics/_model.py#L2812
include this condition
if Model._advector or Model._freeSurface:
Are you able to test this code locally with the change and your model? I can make a branch/PR if this would help the above.
Hi Julian,
Here is the link for the free surface boundary condition testing:
I have another question with this line: https://github.com/underworldcode/underworld2/blob/b72fc39337db6c36a68b585540262c14cc9fc59e/underworld/UWGeodynamics/_model.py#L2812-L2815
Under this setting if Model.freeSurface = True
the restarting model would load mesh.h5
then, which is not the case for the free surface condition as it should load mesh-step.h5
Thanks for the test model. I have made a fix for the code. I also made some light changes to the test code. Will push it now.
The changes I made are on the 2.14.x
branch.
I'll create a 2.14.2b release soon to address the change.
In the meantime if you can try the code with the change, and let me know, that would be great.
Hi Julian,
I think the change is working just fine. Closing this issue.
Hi all,
I am creating a 2D subduction model with free top surface. When I was trying to restart the model, the restarting process stuck at mesh loading procedure and report error as:
And in the job log, the restarting process stuck at mesh loading as:
I noticed that the auto-generated file name for the deformed mesh in the free surface model is different. For free-slip model, the mesh doesn't deform and the file is named as:
mesh.h5
For free surface model, the mesh deform and the mesh file is different for each timestep and saved as:mesh-5.h5
The restarting error is due to the change in mesh output for the free surface model?