Skip to content

Commit

Permalink
ceptr: Copy Make.package to the plog subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
terencelehmann committed Dec 18, 2024
1 parent f1ff696 commit c3c9bf1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions Mechanisms/POLIMI2020/1_000atm/Make.package
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CEXE_sources+=mechanism.cpp
8 changes: 0 additions & 8 deletions Mechanisms/POLIMI2020/Make.package
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
CEXE_headers+=mechanism.H

CEXE_sources+=mechanism.cpp

LIBRARIES +=

INCLUDE_LOCATIONS += $(CHEM_DIR)

VPATH_LOCATIONS += $(CHEM_DIR)/PMFs
4 changes: 4 additions & 0 deletions Support/ceptr/ceptr/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ def __init__(
plog_folder = f"{plog_pressure/cc.Patm_pa:0.3f}atm".replace(".", "_")
if not os.path.isdir(self.mechpath.parents[0] / plog_folder):
os.makedirs(self.mechpath.parents[0] / plog_folder)
# Copy the Make.package file into the new folder
source = self.mechpath.parents[0] / "Make.package"
destination = self.mechpath.parents[0] / plog_folder / "Make.package"
shutil.copy(source, destination)
self.rootname = f"{plog_folder}/mechanism"
else:
self.rootname = "mechanism"
Expand Down

0 comments on commit c3c9bf1

Please sign in to comment.