underworldcode / UWGeodynamics

Underworld Geodynamics
Other
80 stars 32 forks source link

Problem with Model.init_model() in v2.11 #262

Closed royarnab18 closed 2 years ago

royarnab18 commented 2 years ago

Hello everyone I keep getting a shape mismatch while running Model.init_model() in uwgeodynamics v2.11. Is there a workaround for this issue? Screenshot 2022-02-01 at 9 21 08 AM

julesghub commented 2 years ago

Hi @royarnab18 - are you sure you're using v2.11? The line causing where your error occurs has been modified in v2.11, ie https://github.com/underworldcode/UWGeodynamics/blob/485ad28cee2b9373a2c9673587e49a96c2e14150/UWGeodynamics/lithopress/lithopress.py#L98

How did you install the code?

royarnab18 commented 2 years ago

Thanks for the reply. I am trying to run it in ARCHER2 using singularity. Should I reinstall the code?

julesghub commented 2 years ago

The singularity docker for UWGeo goes to version UWGeo 2.10 at present. All example models/scripts with that docker should be self consistent with that version of the code.

Have you tried to run the example models - do they exhibit the same error?

royarnab18 commented 2 years ago

Yes, it does actually. The same error persists in the docker container which I tried running on a mac.

julesghub commented 2 years ago

Which examples error?

royarnab18 commented 2 years ago

I tried running Tutorial1. However, I found that the latest tag of the uwgeodynamics does not give this issue. I will close this for now. Thanks