Skip to content

Commit 2935e5f

Browse files
committed
UWGeodynamics Merging
1 parent 29f322a commit 2935e5f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+136
-138
lines changed

.github/workflows/CI.yml

+26-3
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,12 @@ jobs:
212212
- name: Build dependencies
213213
run: |
214214
apt-get update -qq
215-
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends build-essential pkg-config python3-dev swig libxml2-dev
215+
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends build-essential pkg-config python3-dev swig libxml2-dev cmake ninja-build
216216
217217
- name: Runtime dependencies
218218
run: |
219219
apt-get update -qq
220-
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends libxml2 libpython3.9
220+
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends libxml2 libpython3.10
221221
222222
- name: Checkout
223223
uses: actions/checkout@v2
@@ -229,7 +229,9 @@ jobs:
229229
- name: Run Tests
230230
run: |
231231
pip install pytest
232-
python -m pytest -vvv docs/pytests
232+
pytest -vvv docs/pytests
233+
cd docs/test
234+
pytest -vvv UWGeodynamics
233235
234236
conda_build:
235237
name: Conda Build (Python ${{matrix.python-version}} ${{ matrix.os }})
@@ -266,3 +268,24 @@ jobs:
266268
anaconda login --hostname github-actions-${{ matrix.os }}-$RANDOM --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
267269
conda-build --channel conda-forge --user geo-down-under conda
268270
anaconda logout
271+
272+
pypi:
273+
name: Pypi Source Distribution
274+
runs-on: ubuntu-latest
275+
env:
276+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
277+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
278+
steps:
279+
- uses: actions/checkout@v2
280+
- name: Set up Python
281+
uses: actions/setup-python@v2
282+
with:
283+
python-version: 3.8
284+
- name: Package for Pypi
285+
run: |
286+
python setup.py sdist
287+
- name: Push to Pypi
288+
if: github.event_name == 'release'
289+
run: |
290+
pip install twine
291+
python -m twine upload dist/* -r

README.md

+2-2

docs/UWGeodynamics/benchmarks/1_22_Indentor_Benchmark.ipynb

+5-3
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,14 @@
7676
"metadata": {},
7777
"outputs": [],
7878
"source": [
79+
"from underworld.mesh import FeMesh_IndexSet\n",
80+
"\n",
7981
"cond1 = (Model.mesh.data[Model.top_wall.data][:, 0] < 0.0625)\n",
8082
"cond2 = (Model.mesh.data[Model.top_wall.data][:, 0] > -0.0625)\n",
8183
"\n",
8284
"indices = Model.top_wall.data[cond1 * cond2]\n",
8385
"\n",
84-
"IndexSet = GEO.uw.mesh.FeMesh_IndexSet(Model.mesh, topologicalIndex=0, size=Model.mesh.nodesGlobal, fromObject=indices)"
86+
"IndexSet = FeMesh_IndexSet(Model.mesh, topologicalIndex=0, size=Model.mesh.nodesGlobal, fromObject=indices)"
8587
]
8688
},
8789
{
@@ -207,7 +209,7 @@
207209
],
208210
"metadata": {
209211
"kernelspec": {
210-
"display_name": "Python 3",
212+
"display_name": "Python 3 (ipykernel)",
211213
"language": "python",
212214
"name": "python3"
213215
},
@@ -221,7 +223,7 @@
221223
"name": "python",
222224
"nbconvert_exporter": "python",
223225
"pygments_lexer": "ipython3",
224-
"version": "3.9.1"
226+
"version": "3.10.4"
225227
}
226228
},
227229
"nbformat": 4,

docs/development/docker/base/Dockerfile

-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,9 @@ RUN apt-get update -qq \
3131
python3-virtualenv \
3232
python3-pip \
3333
python3-numpy \
34-
python3-numpy-dbg \
3534
vim \
3635
less \
3736
git \
38-
cmake \
39-
gcc python3-dev \
4037
valgrind valgrind-dbg valgrind-mpi \
4138
gdb cgdb \
4239
&& apt-get clean \

docs/development/docker/petsc/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ RUN ldconfig
7171
# create venv now for forthcoming python packages
7272
USER $NB_USER
7373
RUN /usr/bin/python3 -m virtualenv --system-site-packages --python=/usr/bin/python3 ${VIRTUAL_ENV}
74-
RUN pip3 install --no-cache-dir mpi4py
74+
RUN pip3 install --no-cache-dir Cython git+https://github.com/mpi4py/[email protected]
7575

7676
USER root
7777
# build petsc

docs/development/docker/underworld2/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN apt-get update -qq \
1111
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
1212
libxml2 \
1313
libpython${PYVER}
14+
1415

1516
FROM base_runtime AS build_base
1617
# install build requirements
@@ -20,6 +21,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
2021
pkg-config \
2122
python3-dev \
2223
cmake \
24+
ninja-build \
2325
make \
2426
swig \
2527
libxml2-dev \

docs/development/docs_generator/UWGeoTutorials.rst

+5-5

docs/development/docs_generator/UWGeoUserGuide.rst

+17-17

docs/development/docs_generator/UWGeodynamics.rst

+3-3

0 commit comments

Comments
 (0)