Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for global HELICS_PORT #16

Merged
merged 6 commits into from
Apr 26, 2023
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
10 changes: 8 additions & 2 deletions example_case_folders/example_sim_04/batch_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@ module load netcdf-c/4.7.3/gcc-mpi
# module load mpt


# Set the helics port to use:
export HELICS_PORT=23405

#make sure you use the same port number in the amr_input.inp and emu_input_000.yaml files.

# Set up the helics broker
helics_broker -t zmq -f 2 --loglevel="debug" &
helics_broker -f 2 --consoleloglevel=trace --loglevel=debug --local_port=$HELICS_PORT &


# Need to set this to your emu_python folder
# cd /home/pfleming/emu_python/emu_python
python3 emu_runscript.py emu_input_000.yaml >> logemu 2>&1 & # Start the controller center and pass in input file

# Now go back to scratch folder and launch the job
# cd /scratch/pfleming/c2c/example_sim_02
mpirun -n 72 /home/pfleming/amr-wind/build/amr_wind amr_input.inp >> logamr 2>&1
mpirun -n 72 /home/pfleming/amr-wind/build/amr_wind amr_input.inp >> logamr 2>&1
1 change: 1 addition & 0 deletions example_case_folders/example_sim_05/amr_input.inp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ ABL.stats_output_format = netcdf

# Whether to use helics
helics.activated = true
helics.broker_port =23405

#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨#
# ADAPTIVE MESH REFINEMENT #
Expand Down
9 changes: 7 additions & 2 deletions example_case_folders/example_sim_05/bash_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
# A lot of modules and conda stuff
conda activate emupy

# Set the helics port to use:
export HELICS_PORT=23405

#make sure you use the same port number in the amr_input.inp and emu_input_000.yaml files.

# Set up the helics broker
helics_broker -t zmq -f 2 --loglevel="debug" &
helics_broker -f 2 --consoleloglevel=trace --loglevel=debug --local_port=$HELICS_PORT &

# Need to set this to your emu_python folder
# cd /home/pfleming/emu_python/emu_python
Expand All @@ -16,4 +21,4 @@ python3 emu_runscript_dummy_amr.py amr_input.inp >> logdummy 2>&1
# Now go back to scratch folder and launch the job

# cd /scratch/pfleming/c2c/example_sim_02
# mpirun -n 72 /home/pfleming/amr-wind/build/amr_wind amr_input.inp >> logamr
# mpirun -n 72 /home/pfleming/amr-wind/build/amr_wind amr_input.inp >> logamr
1 change: 1 addition & 0 deletions example_case_folders/example_sim_06/amr_input.inp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ ABL.stats_output_format = netcdf

# Whether to use helics
helics.activated = true
helics.broker_port = 32000

#¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨#
# ADAPTIVE MESH REFINEMENT #
Expand Down
5 changes: 3 additions & 2 deletions example_case_folders/example_sim_06/batch_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ module load netcdf-c/4.7.3/gcc-mpi
# module load mkl
# module load mpt

export HELICS_PORT=32000

# Set up the helics broker
helics_broker -t zmq -f 2 --loglevel="debug" &
helics_broker -t zmq -f 2 --loglevel="debug" --local_port=$HELICS_PORT &

# Need to set this to your emu_python folder
# cd /home/pfleming/emu_python/emu_python
python3 emu_runscript.py emu_input_000.yaml >> logemu 2>&1 & # Start the controller center and pass in input file

# Now go back to scratch folder and launch the job
# cd /scratch/pfleming/c2c/example_sim_02
mpirun -n 72 /home/pfleming/amr-wind/build/amr_wind amr_input.inp >> logamr 2>&1
mpirun -n 72 /home/msinner/emu_moa_dev/amr-wind/build/amr_wind amr_input.inp >> logamr 2>&1