Skip to content

Commit c548352

Browse files
Update src/perturbIC.py
Co-authored-by: Davide Marchegiani <[email protected]>
1 parent 6177053 commit c548352

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

Diff for: src/perturbIC.py

-23
Original file line numberDiff line numberDiff line change
@@ -123,29 +123,6 @@ def create_perturbation(amplitude, random_generator, shape, nullify_poles = True
123123
perturbation[[0,-1],:] = 0
124124
return perturbation
125125

126-
def is_end_of_file(field_data, data_limit):
127-
"""
128-
This function checks to see if there is data associated with the metadata
129-
130-
Parameters
131-
----------
132-
f : umFile Object
133-
This is the fields file that holds the restart data
134-
135-
k : int
136-
This integer is indexing the metadata in the fields file
137-
138-
data_limit : int
139-
This int is a placeholder indicating the end of the data
140-
Returns
141-
----------
142-
boolean - True if the end of the data is reached and False everwhere else
143-
"""
144-
145-
if field_data == data_limit:
146-
return True
147-
else:
148-
return False
149126

150127
def do_perturb(field, surface_stash_code):
151128
"""

0 commit comments

Comments
 (0)