Mesh data is constant over time.
- Attributes
name: name of the meshdim: geometrical dimension of the mesh
| # Author: Jørgen S. Dokken | |
| # SPDX-License-Identifier: MIT | |
| from pathlib import Path | |
| from mpi4py import MPI | |
| import h5py |
| # Copyright (C) 2023 Igor A. Baratta | |
| # SPDX-License-Identifier: MIT | |
| from functools import partial | |
| import dolfinx | |
| import numpy as np | |
| import scipy.sparse | |
| from dolfinx.fem import Function, FunctionSpace | |
| from dolfinx.io import XDMFFile, gmshio |
| FROM ubuntu:22.04 | |
| ENV DEB_PYTHON_INSTALL_LAYOUT=deb_system | |
| RUN apt-get update && \ | |
| apt-get install -q -y python3-pip | |
| RUN python3 -m pip install --upgrade pip setuptools | |
| RUN python3 -m pip install vaex dash numpy |
compile_demo(){
cmake -G Ninja -B build-dir-${DOLFINX_MODE}${DOLFINX_PRECISION} -DCMAKE_BUILD_TYPE=${DOLFINX_CMAKE_BUILD_TYPE} -DCMAKE_CXX_FLAGS="${DOLFINX_CMAKE_CXX_FLAGS}" . && ninja -j8 -C build-dir-${DOLFINX_MODE}${DOLFINX_PRECISION}
}
rebuild(){
BASEDIR=$(pwd)
cd /root/shared/"$1"