mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Merge pull request #1823 from paulromano/gha-ubuntu-20-04
Run CI tests on ubuntu 20.04
This commit is contained in:
commit
a76c5a7e09
6 changed files with 12 additions and 8 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
|
@ -23,7 +23,7 @@ env:
|
|||
|
||||
jobs:
|
||||
main:
|
||||
runs-on: ubuntu-16.04
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.8]
|
||||
|
|
@ -95,12 +95,16 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
sudo apt -y update
|
||||
sudo apt install -y libopenmpi-dev \
|
||||
sudo apt install -y libmpich-dev \
|
||||
libnetcdf-dev \
|
||||
libpnetcdf-dev \
|
||||
libhdf5-serial-dev \
|
||||
libhdf5-openmpi-dev \
|
||||
libhdf5-mpich-dev \
|
||||
libeigen3-dev
|
||||
sudo update-alternatives --set mpi /usr/bin/mpicc.mpich
|
||||
sudo update-alternatives --set mpirun /usr/bin/mpirun.mpich
|
||||
sudo update-alternatives --set mpi-x86_64-linux-gnu /usr/include/x86_64-linux-gnu/mpich
|
||||
|
||||
-
|
||||
name: install
|
||||
shell: bash
|
||||
|
|
|
|||
|
|
@ -580,7 +580,7 @@ class Sum(EqualityMixin):
|
|||
|
||||
|
||||
class Regions1D(EqualityMixin):
|
||||
"""Piecewise composition of multiple functions.
|
||||
r"""Piecewise composition of multiple functions.
|
||||
|
||||
This class allows you to create a callable object which is composed
|
||||
of multiple other callable objects, each applying to a specific interval
|
||||
|
|
|
|||
|
|
@ -995,7 +995,7 @@ class WindowedMultipole(EqualityMixin):
|
|||
|
||||
out.windows = group['windows'][()]
|
||||
|
||||
out.broaden_poly = group['broaden_poly'][...].astype(np.bool)
|
||||
out.broaden_poly = group['broaden_poly'][...].astype(bool)
|
||||
if out.broaden_poly.shape[0] != out.windows.shape[0]:
|
||||
raise ValueError(err.format('broaden_poly', 'windows'))
|
||||
|
||||
|
|
|
|||
|
|
@ -2060,7 +2060,7 @@ class XSdata:
|
|||
Np = self.num_polar
|
||||
Na = self.num_azimuthal
|
||||
|
||||
g_out_bounds = np.zeros((Np, Na, G, 2), dtype=np.int)
|
||||
g_out_bounds = np.zeros((Np, Na, G, 2), dtype=int)
|
||||
for p in range(Np):
|
||||
for a in range(Na):
|
||||
for g_in in range(G):
|
||||
|
|
|
|||
|
|
@ -493,7 +493,7 @@ class SphericalIndependent(Spatial):
|
|||
return cls(r, theta, phi, origin=origin)
|
||||
|
||||
class CylindricalIndependent(Spatial):
|
||||
"""Spatial distribution represented in cylindrical coordinates.
|
||||
r"""Spatial distribution represented in cylindrical coordinates.
|
||||
|
||||
This distribution allows one to specify coordinates whose :math:`r`,
|
||||
:math:`\phi`, and :math:`z` components are sampled independently from
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ if [[ $MPI == 'y' ]]; then
|
|||
|
||||
export CC=mpicc
|
||||
export HDF5_MPI=ON
|
||||
export HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/openmpi
|
||||
export HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/mpich
|
||||
pip install --no-binary=h5py h5py
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue