Skip to content

Commit

Permalink
Put partition files in own directory
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Mar 14, 2023
1 parent c8a6117 commit f8511b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ def run(self):
check_call(args, logger)

# create link in assembled files directory

inputdata_dir = os.path.join(self.ocean_inputdata_dir, 'partitions')
try:
os.makedirs(inputdata_dir)
except FileExistsError:
pass
files = glob('mpas-o.graph.info.*')
for file in files:
symlink(os.path.abspath(file),
f'{self.ocean_inputdata_dir}/{file}')
f'{inputdata_dir}/{file}')
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,15 @@ def run(self):
check_call(args, logger)

# create link in assembled files directory
inputdata_dir = os.path.join(self.seaice_inputdata_dir, 'partitions')
try:
os.makedirs(inputdata_dir)
except FileExistsError:
pass
files = glob('mpas-seaice.graph.info.*')
for file in files:
symlink(os.path.abspath(file),
f'{self.seaice_inputdata_dir}/{file}')
f'{inputdata_dir}/{file}')


def _make_mapping_file(in_mesh_filename, in_mesh_name, out_mesh_filename,
Expand Down

0 comments on commit f8511b7

Please sign in to comment.