Skip to content

Commit c1d2aa8

Browse files
committed
Cleaning up dead comments and code.
1 parent cde2913 commit c1d2aa8

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

examples-proposed/024-aggregated-compute-ensemble/driver.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ def step(self, timestamp=0.0):
3030
# different instances.
3131
variables = params_from_csv(self.config['PARAMETER_FILE'])
3232

33-
# This is the IPS configuration file for the instances that looks like
34-
# a regular configuration file except there are slots for the
35-
# 'base_x', 'base_y',
36-
# and 'word' for variable substitution. 'TEMPLATE' is specified in the
37-
# config file section for this driver.
33+
# This is the IPS configuration file for the instances that looks
34+
# like a regular configuration file except there are slots for the
35+
# variables (e.g., 'alpha', 'T_final', etc.). 'TEMPLATE' is
36+
# specified in the config file section for this driver.
3837
template = Path(self.config['TEMPLATE'])
3938
self.services.info(f'Using template config file {template}')
4039

@@ -45,9 +44,7 @@ def step(self, timestamp=0.0):
4544
# Now spin up and run the instances. This function will return a list
4645
# with each list element corresponding to an instance. You can use
4746
# this information to find the specific instance run directory for a
48-
# given set of variables. E.g., the instance corresponding to
49-
# {'base_x' : 2, 'base_y' : 5.82, 'word' : 'baz'} is probably found
50-
# in the `INSTANCE_` subdirectory.
47+
# given set of variables.
5148
#
5249
# The "name" parameter must be unique for each ensemble within a run,
5350
# and will be used as an identifier on the Portal.

examples-proposed/024-aggregated-compute-ensemble/instance_component.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def generate_synthetic_data(alpha: float, L:float, T_final:float, Nx:int, Nt:int
3535
dx = L / (Nx - 1)
3636
dt = T_final / Nt
3737
r = alpha * dt / (dx ** 2)
38-
#
38+
3939
# # Check stability condition for explicit method
4040
if r > 0.5:
4141
print("Warning: Stability condition r <= 0.5 is not met. "

examples-proposed/024-aggregated-compute-ensemble/perlmutter.slurm

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ module load PrgEnv-gnu openmpi python
1717
# Again, this assumes that there exists a conda environment named "ips".
1818
conda activate ips
1919

20-
# This sets the absolute path to the mpi_stats.py script, which is used by IPS to
21-
export MPI_STATS_EXEC=$(realpath ./mpi_stats.py)
22-
23-
echo "Using MPI_STATS_EXEC: ${MPI_STATS_EXEC}"
24-
2520
# The 2>&1 binds stderr to stdout so that both are captured in the tee log file. The
2621
# `tee` command allows you to see the output on the terminal as well as save it.
2722
ips.py --simulation=ensemble.conf --platform=platform.conf \

0 commit comments

Comments
 (0)