Skip to content

Commit

Permalink
Merge pull request #172 from SanderHulst/feature/open_boundary_nest_o…
Browse files Browse the repository at this point in the history
…rder

♻️ loop over constituents, then open boundaries
  • Loading branch information
SorooshMani-NOAA authored Aug 31, 2023
2 parents f51aa04 + 26b3f29 commit 5b5113a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adcircpy/fort15.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,9 @@ def get_tidal_forcing(self) -> str:
# f'{len(self.mesh.open_boundaries)}',
]
)
for index, row in self.mesh.boundaries.ocean.gdf.iterrows():
for constituent in self.mesh.forcings.tides.get_active_constituents():
f.append(fort15_line(constituent))
for constituent in self.mesh.forcings.tides.get_active_constituents():
f.append(fort15_line(constituent))
for index, row in self.mesh.boundaries.ocean.gdf.iterrows():
vertices = self.mesh.get_xy(crs='EPSG:4326').iloc[row.indexes, :].values
amp, phase = self.mesh.forcings.tides.tidal_dataset(constituent, vertices)
f.extend(
Expand Down

0 comments on commit 5b5113a

Please sign in to comment.