diff --git a/adcircpy/fort15.py b/adcircpy/fort15.py index 8e696105..21f6ec3d 100644 --- a/adcircpy/fort15.py +++ b/adcircpy/fort15.py @@ -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(