underworldcode / UWGeodynamics

Underworld Geodynamics
Other
81 stars 32 forks source link

GEO.shapes.Box #125

Closed PatriceFRey closed 5 years ago

PatriceFRey commented 5 years ago

Hi Romain It looks like the option "GEO.shapes.Box" no longer works.
Is this correct? Cheers Patrice

rbeucher commented 5 years ago

Hi Patrice,

There's no reason it should not work. Do you have an example?

PatriceFRey commented 5 years ago

It's the Pull-Apart model, I am using the GEO.shapes.Box to define fault damage using:

DamageFault1Shape = GEO.shapes.Box(minX=0.0 u.kilometer, maxX=192. u.kilometer, minY=145. u.kilometer, maxY=159. u.kilometer, bottom=-40. u.kilometer, top=-5. u.kilometer)

I then got an error message saying that GEO.shapes doesn't have a Box option.

rbeucher commented 5 years ago

I have just tried this

import UWGeodynamics as GEO

DamageFault1Shape = GEO.shapes.Box(minX=0.0 * u.kilometer, maxX=192. * u.kilometer,
minY=145. * u.kilometer, maxY=159. * u.kilometer,
bottom=-40. * u.kilometer, top=-5. * u.kilometer)

And I don't have any error. Can you give me a bit more detail about where you are running the code, the output of GEO.__version__ too please.

PatriceFRey commented 5 years ago

... my apology, my .pbs was pointing to underworld_v2.7.7 instead of uwgeodynamics_v2.7.7 Sorry.

rbeucher commented 5 years ago

No worries.