Skip to content

Commit 4c48fcf

Browse files
committed
Merge remote-tracking branch 'upstream/cam_development' into clubb_intr_gpuization
2 parents b1a243c + b4c6463 commit 4c48fcf

File tree

88 files changed

+3284
-2947
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+3284
-2947
lines changed

.gitmodules

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
[submodule "atmos_phys"]
3737
path = src/atmos_phys
3838
url = https://github.com/ESCOMP/atmospheric_physics
39-
fxtag = atmos_phys0_05_000
39+
fxtag = atmos_phys0_07_001
4040
fxrequired = AlwaysRequired
4141
fxDONOTUSEurl = https://github.com/ESCOMP/atmospheric_physics
4242

@@ -144,42 +144,42 @@ fxDONOTUSEurl = https://github.com/ESCOMP/mizuRoute
144144
[submodule "ccs_config"]
145145
path = ccs_config
146146
url = https://github.com/ESMCI/ccs_config_cesm.git
147-
fxtag = ccs_config_cesm1.0.0
147+
fxtag = ccs_config_cesm1.0.8
148148
fxrequired = ToplevelRequired
149149
fxDONOTUSEurl = https://github.com/ESMCI/ccs_config_cesm.git
150150

151151
[submodule "cime"]
152152
path = cime
153153
url = https://github.com/ESMCI/cime
154-
fxtag = cime6.1.0
154+
fxtag = cime6.1.56
155155
fxrequired = ToplevelRequired
156156
fxDONOTUSEurl = https://github.com/ESMCI/cime
157157

158158
[submodule "cmeps"]
159159
path = components/cmeps
160160
url = https://github.com/ESCOMP/CMEPS.git
161-
fxtag = cmeps1.0.2
161+
fxtag = cmeps1.0.32
162162
fxrequired = ToplevelRequired
163163
fxDONOTUSEurl = https://github.com/ESCOMP/CMEPS.git
164164

165165
[submodule "cdeps"]
166166
path = components/cdeps
167167
url = https://github.com/ESCOMP/CDEPS.git
168-
fxtag = cdeps1.0.48
168+
fxtag = cdeps1.0.61
169169
fxrequired = ToplevelRequired
170170
fxDONOTUSEurl = https://github.com/ESCOMP/CDEPS.git
171171

172172
[submodule "share"]
173173
path = share
174174
url = https://github.com/ESCOMP/CESM_share
175-
fxtag = share1.1.2
175+
fxtag = share1.1.6
176176
fxrequired = ToplevelRequired
177177
fxDONOTUSEurl = https://github.com/ESCOMP/CESM_share
178178

179179
[submodule "parallelio"]
180180
path = libraries/parallelio
181181
url = https://github.com/NCAR/ParallelIO
182-
fxtag = pio2_6_2
182+
fxtag = pio2_6_3
183183
fxrequired = ToplevelRequired
184184
fxDONOTUSEurl = https://github.com/NCAR/ParallelIO
185185

@@ -193,13 +193,13 @@ fxDONOTUSEurl = https://github.com/ESCOMP/CESM_CICE
193193
[submodule "clm"]
194194
path = components/clm
195195
url = https://github.com/ESCOMP/CTSM
196-
fxtag = ctsm5.2.027
196+
fxtag = ctsm5.3.016
197197
fxrequired = ToplevelRequired
198198
fxDONOTUSEurl = https://github.com/ESCOMP/CTSM
199199

200200
[submodule "fms"]
201201
path = libraries/FMS
202202
url = https://github.com/ESCOMP/FMS_interface
203-
fxtag = fi_240516
203+
fxtag = fi_240828
204204
fxrequired = ToplevelRequired
205205
fxDONOTUSEurl = https://github.com/ESCOMP/FMS_interface

.lib/git-fleximod/git_fleximod/cli.py

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,31 @@
22
import argparse
33
from git_fleximod import utils
44

5-
__version__ = "0.8.4"
5+
__version__ = "0.9.3"
66

77
def find_root_dir(filename=".gitmodules"):
88
""" finds the highest directory in tree
99
which contains a file called filename """
10-
d = Path.cwd()
11-
root = Path(d.root)
12-
dirlist = []
13-
dl = d
14-
while dl != root:
15-
dirlist.append(dl)
16-
dl = dl.parent
17-
dirlist.append(root)
18-
dirlist.reverse()
19-
20-
for dl in dirlist:
21-
attempt = dl / filename
22-
if attempt.is_file():
23-
return str(dl)
24-
return None
25-
10+
try:
11+
root = utils.execute_subprocess(["git","rev-parse", "--show-toplevel"],
12+
output_to_caller=True ).rstrip()
13+
except:
14+
d = Path.cwd()
15+
root = Path(d.root)
16+
dirlist = []
17+
dl = d
18+
while dl != root:
19+
dirlist.append(dl)
20+
dl = dl.parent
21+
dirlist.append(root)
22+
dirlist.reverse()
23+
24+
for dl in dirlist:
25+
attempt = dl / filename
26+
if attempt.is_file():
27+
return str(dl)
28+
return None
29+
return Path(root)
2630

2731
def get_parser():
2832
description = """

.lib/git-fleximod/git_fleximod/git_fleximod.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ def submodule_sparse_checkout(root_dir, name, url, path, sparsefile, tag="master
124124
# set the repository remote
125125

126126
logger.info("Setting remote origin in {}/{}".format(root_dir, path))
127-
status = sprepo_git.git_operation("remote", "-v")
128-
if url not in status:
127+
_, remotelist = sprepo_git.git_operation("remote", "-v")
128+
if url not in remotelist:
129129
sprepo_git.git_operation("remote", "add", "origin", url)
130130

131131
topgit = os.path.join(gitroot, ".git")
@@ -213,7 +213,7 @@ def submodules_status(gitmodules, root_dir, toplevel=False, depth=0):
213213

214214
def git_toplevelroot(root_dir, logger):
215215
rgit = GitInterface(root_dir, logger)
216-
superroot = rgit.git_operation("rev-parse", "--show-superproject-working-tree")
216+
_, superroot = rgit.git_operation("rev-parse", "--show-superproject-working-tree")
217217
return superroot
218218

219219
def submodules_update(gitmodules, root_dir, requiredlist, force):
@@ -342,7 +342,7 @@ def main():
342342
excludelist=excludelist,
343343
)
344344
if not gitmodules.sections():
345-
sys.exit("No submodule components found")
345+
sys.exit(f"No submodule components found, root_dir={root_dir}")
346346
retval = 0
347347
if action == "update":
348348
submodules_update(gitmodules, root_dir, fxrequired, force)

.lib/git-fleximod/git_fleximod/gitinterface.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ def git_operation(self, operation, *args, **kwargs):
5959
command = self._git_command(operation, *newargs)
6060
if isinstance(command, list):
6161
try:
62-
return utils.execute_subprocess(command, output_to_caller=True)
62+
status, output = utils.execute_subprocess(command, status_to_caller=True, output_to_caller=True)
63+
return status, output.rstrip()
6364
except Exception as e:
6465
sys.exit(e)
6566
else:
66-
return command
67+
return 0, command
6768

6869
def config_get_value(self, section, name):
6970
if self._use_module:
@@ -81,6 +82,8 @@ def config_get_value(self, section, name):
8182
def config_set_value(self, section, name, value):
8283
if self._use_module:
8384
with self.repo.config_writer() as writer:
85+
if "." in section:
86+
section = section.replace("."," \"")+'"'
8487
writer.set_value(section, name, value)
8588
writer.release() # Ensure changes are saved
8689
else:

0 commit comments

Comments
 (0)