@@ -12,8 +12,8 @@ import subprocess
12
12
import logging
13
13
14
14
from cam_config import ConfigCAM # CAM's configure structure
15
- from atm_musica_config import musica_repo_url , musica_tag
16
- from atm_musica_config import chemistry_data_repo_url , chemistry_data_tag
15
+ from atm_musica_config import MUSICA_REPO_URL , MUSICA_TAG
16
+ from atm_musica_config import CHEMISTRY_DATA_REPO_URL , CHEMISTRY_DATA_TAG
17
17
18
18
# Check for the CIME library, and add it
19
19
# to the python path:
@@ -254,7 +254,7 @@ def _build_musica_library(case: Case) -> None:
254
254
install_dir_name = "install"
255
255
build_type = "Release"
256
256
caseroot = os .path .normpath (case .get_value ("CASEROOT" ))
257
- _clone_and_checkout (musica_repo_url , musica_tag , caseroot )
257
+ _clone_and_checkout (MUSICA_REPO_URL , MUSICA_TAG , caseroot )
258
258
259
259
bld_path = os .path .join (caseroot , "musica" , "build" )
260
260
if os .path .exists (bld_path ):
@@ -269,8 +269,8 @@ def _build_musica_library(case: Case) -> None:
269
269
"cmake" ,
270
270
f"-DCMAKE_INSTALL_PREFIX={ install_dir_name } " ,
271
271
f"-DCMAKE_BUILD_TYPE={ build_type } " ,
272
- f "-DMUSICA_ENABLE_TESTS=OFF" ,
273
- f "-DMUSICA_BUILD_FORTRAN_INTERFACE=ON" ,
272
+ "-DMUSICA_ENABLE_TESTS=OFF" ,
273
+ "-DMUSICA_BUILD_FORTRAN_INTERFACE=ON" ,
274
274
".."
275
275
]
276
276
result = subprocess .run (command , stdout = subprocess .PIPE , stderr = subprocess .PIPE , text = True )
@@ -324,7 +324,7 @@ def _download_musica_configuration(download_dest: str) -> None:
324
324
"""
325
325
musica_config_dir_name = "musica_configurations"
326
326
327
- _clone_and_checkout (chemistry_data_repo_url , chemistry_data_tag , download_dest )
327
+ _clone_and_checkout (CHEMISTRY_DATA_REPO_URL , CHEMISTRY_DATA_TAG , download_dest )
328
328
329
329
original_dir = os .path .join (download_dest , "cam-sima-chemistry-data" , "mechanisms" )
330
330
renamed_dir = os .path .join (download_dest , "cam-sima-chemistry-data" , musica_config_dir_name )
@@ -377,4 +377,4 @@ def _clone_and_checkout(repo_url: str, tag_name: str, clone_dest: str):
377
377
###############################################################################
378
378
379
379
if __name__ == "__main__" :
380
- _build_cam ()
380
+ _build_cam ()
0 commit comments