Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,24 @@ channels:
- conda-forge
- defaults
dependencies:
- python=3.9 #3.10 causes CI to hang in parallel
- mpich
# - mpich=4.1.2=hd33e60e_101
# - mpich=4.0.3
# - python=3.7
- coveralls
- dolfin-adjoint=2019.1.0
- fenics
- fenics=2019.1.0=py39*_26
- hdf5
- jsonschema
- matplotlib
- memory_profiler
- mshr
- openmdao
- pandas
- pyoptsparse
- pytest
- pytest-cov
- pytest-mpi
- pyyaml
- scipy
- scipy=1.7.0
- sympy=1.13.3
- slepc
- sphinx<7.0.0
- pip
Expand All @@ -37,5 +36,6 @@ dependencies:
- pulp
- fatpack
- gmsh
- meshio
- meshio==5.3.4
- h5py==3.13.0
- -e .
32 changes: 22 additions & 10 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
#!/bin/bash

### Create some names
conda_base_path=$(conda info --base)
env_name=$1

### Run this to use conda in the script
source ${conda_base_path}/etc/profile.d/conda.sh
source $(conda info --base)/etc/profile.d/conda.sh

# ### Create the Environment
# conda create -y --name $1
# conda activate $1

# ### Install conda-forge dependencies
# conda install -y -c conda-forge fenics=2019.1.0=py38_9 dolfin-adjoint matplotlib scipy=1.4.1 slepc mshr hdf5 pyyaml memory_profiler pytest pytest-cov pytest-mpi coveralls pandas

# ### Install the new tsfc compiler
# pip install git+https://github.com/blechta/tsfc.git@2018.1.0
# pip install git+https://github.com/blechta/COFFEE.git@2018.1.0
# pip install git+https://github.com/blechta/FInAT.git@2018.1.0
# pip install git+https://github.com/mdolab/pyoptsparse@v1.0
# pip install singledispatch networkx pulp openmdao fatpack

# ### Install editible version of WindSE
# pip install -e .

conda env create --name ${1} --file environment.yaml

### Create the Environment with mamba
conda create --yes --name ${env_name} --channel conda-forge python=3.9 mamba
conda activate ${env_name}
conda activate ${1}

### Install dependencies from environment
mamba env update --prefix ${conda_base_path}/envs/${env_name} --file environment.yaml --prune
pip install aeromesh --no-deps
6 changes: 6 additions & 0 deletions windse_driver/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ def get_action():

### Run the driver ###
def run_action(params_loc=None):


# Check to see if call from exec and parallel
if __name__ == "windse_driver.driver" and dolfin.MPI.comm_world.Get_size()>1:
raise NotImplementedError("Using the 'windse run' command in parallel is not currently supported. Instead run 'mpirun -n # python -u WindSE/windse_driver/driver.py run <your yaml file here>'")

tick = time.time()

### Clean up other module references ###
Expand Down
Loading