Skip to content

Commit

Permalink
Look for potential files with relative paths to modeling input
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Nov 14, 2023
1 parent b567ce8 commit 1a7e92f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions weis/glue_code/gc_LoadInputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ def set_weis_data(self):
self.modeling_options["Level3"]["HydroDyn"]["PotFile"] = osp.realpath( osp.join(cwd, potpath) )
elif osp.exists( osp.join(weis_dir, potpath+'.1') ):
self.modeling_options["Level3"]["HydroDyn"]["PotFile"] = osp.realpath( osp.join(weis_dir, potpath) )
elif osp.exists( osp.join(mod_opt_dir, potpath+'.1') ):
self.modeling_options["Level3"]["HydroDyn"]["PotFile"] = osp.realpath( osp.join(mod_opt_dir, potpath) )
else:
raise Exception(f'No valid Wamit-style output found for specified PotFile option, {potpath}.1')

Expand Down

0 comments on commit 1a7e92f

Please sign in to comment.