Skip to content

Commit

Permalink
allow integrated vabs
Browse files Browse the repository at this point in the history
  • Loading branch information
du135 committed Jun 25, 2021
1 parent cb050b7 commit 4798b5a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
16 changes: 8 additions & 8 deletions msgpi/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import msgpi.io.iovabs as miovabs
import msgpi.utils as utils


def solve(sg_xml, analysis, ppcmd, solver, timeout=30, scrnout=True, logger=None, timer=None):
"""Solve
Expand Down Expand Up @@ -51,20 +50,21 @@ def solve(sg_xml, analysis, ppcmd, solver, timeout=30, scrnout=True, logger=None
timer.stop()

# Solve
logger.info('running analysis...')
if timer:
timer.start()
run(sg_in, analysis, solver, smdim, scrnout, logger=logger)
if timer:
timer.stop()
if solver != 'integrated':
logger.info('running analysis...')
if timer:
timer.start()
run(sg_in, analysis, solver, smdim, scrnout, logger=logger)
if timer:
timer.stop()

# Parse results
# print(' - reading results...')
logger.info('reading results...')
if timer:
timer.start()
if analysis == 'h':
if solver == 'vabs':
if solver == 'vabs' or solver == 'integrated':
bp = miovabs.readVABSOutHomo(sg_in + '.K')
if timer:
timer.stop()
Expand Down
2 changes: 0 additions & 2 deletions msgpi/dakota_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
import msgpi.io.iovabs as miovabs
import dakota.interfacing as di



def process(fn_json_args, logger=None):
if logger is None:
logger = mlog.initLogger(__name__)
Expand Down
3 changes: 3 additions & 0 deletions msgpi/presg.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ def preSG(
cmd.append('-vabs')
elif 'swiftcomp' in solver:
cmd.append('-sc')
elif 'integrated' in solver:
cmd.append('-e')
cmd.append('-integrated')
cmd.append('-' + analysis)

# cmd = ' '.join(cmd)
Expand Down

0 comments on commit 4798b5a

Please sign in to comment.