Skip to content

Commit

Permalink
Add RAFT-MPI setups to testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Jan 10, 2025
1 parent 0e255a5 commit 218dd5b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/run_exhaustive_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,18 @@ jobs:
# python dac_driver.py

# Run scripts within design of experiments folder
- name: Run examples design of experiments
- name: Run OpenFAST design of experiments
run: |
cd examples/09_design_of_experiments
mpiexec -n 2 --bind-to core python DOE_openfast.py
python postprocess_results.py
- name: Run RAFT design of experiments
run: |
cd examples/09_design_of_experiments
mpiexec -n 2 python DOE_raft.py
- name: Run parallel script with RAFT
run: |
cd examples/17_IEA22_Optimization
mpiexec -n 2 python driver_weis_raft_opt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
general:
folder_output: outputs
folder_output: outputs/OpenFAST_DOE
fname_output: OpenFAST_DOE
design_variables:
blade:
Expand Down
2 changes: 1 addition & 1 deletion examples/09_design_of_experiments/postprocess_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def load_OMsql(log):

# sql outfile directory
run_dir = os.path.dirname(os.path.realpath(__file__))
output_dir = os.path.join(run_dir, "outputs/RAFT_DOE")
output_dir = os.path.join(run_dir, "outputs/OpenFAST_DOE")
doe_logs = glob.glob(os.path.join(output_dir,"log_opt.sql*"))
if len(doe_logs) < 1:
raise FileExistsError("No output logs to post process!")
Expand Down

0 comments on commit 218dd5b

Please sign in to comment.