FormingWorlds / PROTEUS

Coupled atmosphere-interior framework to simulate the temporal evolution of rocky planets.
https://fwl-proteus.readthedocs.io
Apache License 2.0
12 stars 1 forks source link

Remove SPIDER and PETSc submodules #197

Closed nichollsh closed 1 month ago

nichollsh commented 1 month ago

Removed SPIDER and PETSc submodules (closes #196). They can now be installed via scripts in the tools/ directory. These scripts will download PETSc and SPIDER as zip files from OSF, decompress, and compile them. I have added functions for calling these scripts in utils/data.py, which in the future should be made accessible from the CLI. Updated the docs correspondingly.

In the future, we could also consider having PROTEUS run the get_petsc.sh and get_spider.sh scripts automatically if the user has selected SPIDER as the interior module of choice. I leave this for a future PR.

Also added some useful constants to constants.py.

Some optimisations to the module imports in the interior wrapper. Only imports the required functions, while previously it would import the DummyInterior functions even when using SPIDER for the interior model.

Renamed other files in tools/ to use consistent capitalisation.

nichollsh commented 1 month ago

Thanks, Stef!