def setup(cls): unix.mkdir(cls.path) unix.cd(cls.path) optimize.check() optimize.setup() unix.cd(cls.path) m = problem.model_init() savenpy('m_new',m)
def setup(cls): unix.mkdir(cls.path) unix.cd(cls.path) optimize.check() optimize.setup() unix.cd(cls.path) m = problem.model_init() savenpy('m_new', m)
def setup(self): """ Lays groundwork for inversion """ # clean scratch directories if PAR.BEGIN == 1: unix.rm(PATH.GLOBAL) unix.mkdir(PATH.GLOBAL) preprocess.setup() postprocess.setup() optimize.setup() system.run('solver', 'setup', hosts='all')
def setup(self): """ Lays groundwork for inversion """ # clean scratch directories if PAR.BEGIN == 1: unix.rm(PATH.SCRATCH) unix.mkdir(PATH.SCRATCH) preprocess.setup() postprocess.setup() optimize.setup() if PATH.DATA: print 'Copying data' else: print 'Generating data' system.run('solver', 'setup', hosts='all')
def setup(self): """ Lays groundwork for inversion """ # clean scratch directories if PAR.BEGIN == 1: unix.rm(PATH.GLOBAL) unix.mkdir(PATH.GLOBAL) preprocess.setup() postprocess.setup() optimize.setup() if PATH.DATA: print('Copying data...') else: print('Generating data...') system.run('solver', 'setup', hosts='all')
def setup(self): """ Lays groundwork for inversion """ # clean scratch directories if PAR.BEGIN == 1: unix.rm(PATH.SCRATCH) unix.mkdir(PATH.SCRATCH) preprocess.setup() postprocess.setup() optimize.setup() isready = self.solver_status() if not isready: if PATH.DATA: print 'Copying data...' else: print 'Generating data...' system.run('solver', 'setup', hosts='all')
def setup(self): """ Lays groundwork for inversion """ # clean scratch directories if PAR.BEGIN == 1: unix.rm(PATH.GLOBAL) unix.mkdir(PATH.GLOBAL) # set up optimization optimize.setup() # set up pre- and post-processing preprocess.setup() postprocess.setup() # set up solver if PAR.BEGIN == 1: system.run('solver', 'setup', hosts='all') return if PATH.LOCAL: system.run('solver', 'setup', hosts='all')