def setup_comparison(self, src, dst, testModel=True): # adjust htol if it is smaller than IMS outer_dvclose dvclose = self._get_dvclose(dst) if dvclose is not None: dvclose *= 5.0 if self.htol < dvclose: self.htol = dvclose # get rclose to use with budget comparisons rclose = self._get_rclose(dst) if rclose is None: rclose = 0.5 else: rclose *= 5.0 self.rclose = rclose # Copy comparison simulations if available if self.mf6_regression: action = "mf6-regression" pth = os.path.join(dst, action) if os.path.isdir(pth): shutil.rmtree(pth) shutil.copytree(dst, pth) elif testModel: action = pymake.setup_mf6_comparison( src, dst, remove_existing=self.delFiles ) else: action = pymake.get_mf6_comparison(dst) self.action = action return
def set_model(self, pth): """ Set paths to MODFLOW 6 model and associated comparison test """ # make sure this is a valid path if not os.path.isdir(pth): assert False, '{} is not a valid directory'.format(pth) self.simpath = pth # get MNODFLOW6 output file names fpth = os.path.join(pth, 'mfsim.nam') mf6inp, mf6outp = pymake.get_mf6_files(fpth) self.outp = mf6outp # determine comparison model self.action = pymake.get_mf6_comparison(pth)
def set_model(self, pth): """ Set paths to MODFLOW 6 model and associated comparison test """ # make sure this is a valid path if not os.path.isdir(pth): assert False, "{} is not a valid directory".format(pth) self.simpath = pth # get MODFLOW 6 output file names fpth = os.path.join(pth, "mfsim.nam") mf6inp, mf6outp = pymake.get_mf6_files(fpth) self.outp = mf6outp # determine comparison model self.action = pymake.get_mf6_comparison(pth) if self.action is not None: if "mf6" in self.action or "mf6-regression" in self.action: cinp, self.coutp = pymake.get_mf6_files(fpth)