Skip to content

Commit

Permalink
Removed test functions that printed variable values to the console
Browse files Browse the repository at this point in the history
  • Loading branch information
franklin1895 committed Jul 13, 2023
1 parent 199577b commit 1261b99
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion B3D_Inputs/Alongshore_Test-parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ nn: 0.5
rmax: 0.95
rmin: 0.55
s_sf_eq: 0.01698590034494604
storm_file: /Users/ceclmac/PycharmProjects/CASCADE/B3D_Inputs/Default_StormTimeSeries_1000yr.npy
storm_file: /Users/ceclmac/PycharmProjects/CASCADE/B3D_Inputs/cascade-default-storms.npy
threshold_in: 0.25
Binary file added B3D_Inputs/cascade-default-storms.npy
Binary file not shown.
1 change: 0 additions & 1 deletion cascade/bmft_coupler.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ def updateMarsh(self,
# ===================================================================================================================================================================================================================================
# Advance PyBMFT-C back-barrier marshes
# Update RSLR rate from Barrier3D
print(self._bmftc[iB3D]._RSLRi)
self._bmftc[iB3D]._RSLRi = self._barrier3d[iB3D].RSLR[time_step] * 10
self._bmftc[iB3D]._RSLR = self._bmftc[iB3D].RSLRi * 10 ** (-3) / (
3600 * 24 * 365) # Convert from mm/yr to m/s
Expand Down
5 changes: 0 additions & 5 deletions cascade/cascade.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,6 @@ def __init__(
name = self._filename
)

self._bmft_coupler.testInitalization(nt =self._nt,barrier3d=self._barrier3d,ny=self._ny, name = self._filename)
print("Barrier3d will be changed to reflect new initial geometry")


@property
def road_break(self):
return self._road_break
Expand Down Expand Up @@ -736,7 +732,6 @@ def update(self):
self._bmft_coupler.updateMarsh(ny=self._ny,time_step=self._barrier3d[0].time_index,barrier3d=self._barrier3d)
# Change barrier3d object to reflect new initalized changes
self._barrier3d = self._bmft_coupler._barrier3d
print("Barrier3d will be changed to reflect new altered geometry")

###############################################################################
# save data
Expand Down
4 changes: 2 additions & 2 deletions scripts/Batch_Run.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
elevation_file = c_wd + "/B3D_Inputs/barrier3d-default-elevation.npy"

dune_file = c_wd + "/B3D_Inputs/barrier3d-dunes.npy"
storm_file = c_wd+'/B3D_Inputs/Default_StormTimeSeries_1000yr.npy'
storm_file = c_wd+'/B3D_Inputs/cascade-default-storms.npy'

# Call function

Expand Down Expand Up @@ -115,7 +115,7 @@ def Batch_Runs(
nt=nt_run,
name=run_name,
storm_file=storm_file,
alongshore_section_count=number_barrier3d_models,
alongshore_section_count=1,
num_cores=3,
rmin=rmin,
rmax=rmax,
Expand Down
2 changes: 1 addition & 1 deletion scripts/Plot_Files.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def plot_ElevAnimation_CASCADE(

name_prefix = run_name
nt_run = 19
number_barrier3d_models = 1
number_barrier3d_models = 2

# --------- plot ---------
output = np.load(run_name + ".npz", allow_pickle=True)
Expand Down

0 comments on commit 1261b99

Please sign in to comment.