File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def read_hgrid_gr3(file_path):
35
35
return open_boundaries
36
36
37
37
def read_bctides_in (file_path ):
38
- """Read bctides.in and extract open boundary nodes."""
38
+ """Read bctides.in and extract number of open boundary nodes."""
39
39
with open (file_path , 'r' ) as f :
40
40
lines = [line .strip () for line in f if line .strip () and not line .strip ().startswith ('!' )]
41
41
ntip = int (lines [1 ].split ()[0 ])
@@ -76,8 +76,8 @@ def test_boundary_consistency(sim_dir):
76
76
77
77
# Read boundary nodes from both files
78
78
hgrid_boundaries = read_hgrid_gr3 (hgrid_file )
79
- bctides_boundaries = read_bctides_in (bctides_file )
80
-
79
+ bctides_boundaries = read_bctides_in (bctides_file )
80
+
81
81
# Check if the number of boundaries matches
82
82
assert len (hgrid_boundaries ) == len (bctides_boundaries ), \
83
83
f"Mismatch in number of open boundaries: hgrid.gr3 has { len (hgrid_boundaries )} , bctides.in has { len (bctides_boundaries )} "
You can’t perform that action at this time.
0 commit comments