Skip to content

Commit db4e10a

Browse files
committed
Fix indentation error
1 parent a11a3ce commit db4e10a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tools/Python/mcrun/mccode.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ def x_path(file):
186186
else:
187187
cflags += '-lm ' # math library
188188

189+
print("Past CFLAGS")
190+
189191
# Special support for conda environment with compilers included. To be
190192
# conservative we (for now?) only apply this when both CONDA_PREFIX and
191193
# LDFLAGS/CFLAGS are set (C++/Fortran would use CXXFLAGS/FFLAGS instead
@@ -310,9 +312,10 @@ def x_path(file):
310312
if os.environ.get('CONDA_PREFIX'):
311313
if "${CONDA_PREFIX}" in cflags:
312314
cflags=cflags.replace("${CONDA_PREFIX}",os.environ.get('CONDA_PREFIX'))
313-
315+
print("PRE LINTER")
314316
# Lint or compile?
315317
if options.c_lint is not None:
318+
print("LINTER")
316319
args = [self.cpath] + lexer.split(mccode_config.compilation['CLINTERFLAGS'])
317320
Process(lexer.quote(mccode_config.compilation['CLINT'])).run(args)
318321
LOG.info('End of linting %s', self.cpath)
@@ -323,7 +326,7 @@ def x_path(file):
323326
args = ['-o', self.binpath, self.cpath] + lexer.split(cflags)
324327
else:
325328
args = [self.cpath] + lexer.split(cflags)
326-
Process(lexer.quote(options.cc)).run(args)
329+
Process(lexer.quote(options.cc)).run(args)
327330

328331
def run(self, pipe=False, extra_opts=None, override_mpi=None):
329332
''' Run simulation '''

0 commit comments

Comments
 (0)