Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.

Commit 485ad28

Browse files
authored
2.11 version PR (#248)
2.11 Version
1 parent e99e225 commit 485ad28

File tree

61 files changed

+3756
-2749
lines changed

Some content is hidden

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

61 files changed

+3756
-2749
lines changed

.github/workflows/build_push_docker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
name: Docker
3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- master
47

58
jobs:
69
build:

.github/workflows/conda_deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Conda Deployment
2+
3+
on:
4+
release:
5+
types: [created, edited]
6+
workflow_dispatch:
7+
8+
jobs:
9+
10+
conda_build_test:
11+
name: Conda Build (${{ matrix.os }})
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: ["ubuntu-latest", "macos-latest"]
17+
python-version: ["3.7", "3.8"]
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: conda-incubator/setup-miniconda@v2
21+
with:
22+
auto-update-conda: true
23+
python-version: ${{ matrix.python-version }}
24+
- name: Conda Upload
25+
shell: bash -l {0}
26+
run: |
27+
conda install --channel conda-forge conda-build anaconda-client conda-verify
28+
conda config --add channels conda-forge
29+
conda config --add channels underworldcode
30+
conda config --set anaconda_upload yes
31+
anaconda login --hostname github-actions-${{ matrix.os }}-$RANDOM --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
32+
conda-build --channel conda-forge --user geo-down-under conda
33+
anaconda logout

.github/workflows/pypi_deployer.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: pypi deployer
22
on:
3-
push
4-
#tags:
5-
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
3+
push:
4+
tags:
5+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
66
jobs:
77
#Release new version on github releases
88
# Github-release:

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
test_in_UW_Container:
77
runs-on: ubuntu-latest
88
container:
9-
image: underworldcode/underworld2:2.10.0b
9+
image: underworldcode/underworld2:latest
1010
options: --user root
1111
steps:
1212
- name: Test in UW Container
@@ -17,4 +17,4 @@ jobs:
1717
# git checkout development
1818
pip install -e .
1919
pip install pytest
20-
python -m pytest -vvv
20+
python -m pytest -vvv

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
# Version 2.10
21

2+
# Version 2.11
33

4-
- Layer2D which has now been deprecated for a while has been removed
4+
- Change Passive Tracers Interface. The ``Model.add_passive_tracers`` method now return ``None``. Tracers can be accessed via the Model object. This is to avoid orphans and usage errors when doing a restart.
5+
- Add option to pass UW function (or mesh variable) to the density material properties.
6+
- `Model.init_model()` excepts arguments to optional to initiliase temperature and pressure fields with an UW function or a mesh variable.
7+
- Various bug fixes.
58

9+
# Version 2.10
10+
11+
- Layer2D which has now been deprecated for a while has been removed
612

713
# Version 2.9
814

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Stage 1: Inherit from underworldcode/underworld2:2.10.0b and install dependency packages for Badlands
22
##########
3-
FROM underworldcode/underworld2:2.10.0b as base_runtime
3+
FROM underworldcode/underworld2:2.11.0b as base_runtime
44
MAINTAINER https://github.com/underworldcode/
55
# install runtime requirements
66
USER root

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[![Docs](https://readthedocs.org/projects/uwgeodynamics/badge)](http://uwgeodynamics.readthedocs.org/)
1010
![tests](https://github.com/underworldcode/UWGeodynamics/workflows/tests/badge.svg)
1111

12-
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/rbeucher/UWGeodynamics-binder/master)
12+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/underworldcode/UWGeodynamics.git/master)
1313

1414
![image](docs/tutorials/images/Tutorial1.gif)
1515
![image](docs/readthedocs/src/img/collision_wedge.gif)

UWGeodynamics/LecodeIsostasy/LecodeIsostasy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ def _get_average_densities2D(self):
498498
# data_nodegId as domain size (local+node) so we need to only take
499499
# the local nodes otherwise the reduce operation will results in higher
500500
# values where domains overlaps...
501-
local_densities[self.mesh.data_nodegId[:self.mesh.nodesLocal]] = self.DensityVar.data[:self.mesh.nodesLocal]
502-
local_materials[self.mesh.data_nodegId[:self.mesh.nodesLocal]] = self.MaterialVar.data[:self.mesh.nodesLocal]
501+
local_densities[self.mesh.data_nodegId[:self.mesh.nodesLocal]] = self.DensityVar.data[:self.mesh.nodesLocal, 0]
502+
local_materials[self.mesh.data_nodegId[:self.mesh.nodesLocal]] = self.MaterialVar.data[:self.mesh.nodesLocal, 0]
503503

504504
# Reduce local_densities arrays to global_densities
505505
comm.Allreduce(local_densities, global_densities)
@@ -558,8 +558,8 @@ def _get_average_densities3D(self):
558558
global_materials = np.zeros((nx+1)*(ny+1)*(nz+1))
559559

560560
# Load the densities and material into the local_densities arrays
561-
local_densities[self.mesh.data_nodegId[:self.mesh.nodesLocal]] = self.DensityVar.data[:self.mesh.nodesLocal]
562-
local_materials[self.mesh.data_nodegId[:self.mesh.nodesLocal]] = self.MaterialVar.data[:self.mesh.nodesLocal]
561+
local_densities[self.mesh.data_nodegId[:self.mesh.nodesLocal]] = self.DensityVar.data[:self.mesh.nodesLocal, 0]
562+
local_materials[self.mesh.data_nodegId[:self.mesh.nodesLocal]] = self.MaterialVar.data[:self.mesh.nodesLocal, 0]
563563

564564
# Reduce local_densities arrays to global_densities
565565
comm.Allreduce(local_densities, global_densities)

UWGeodynamics/Underworld_extended/__init__.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

UWGeodynamics/Underworld_extended/_mesh.py

Lines changed: 0 additions & 233 deletions
This file was deleted.

0 commit comments

Comments
 (0)