def run_n2to3(self, stdin): from lib.nekBinRun import run_meshgen run_meshgen( command = os.path.join(self.tools_bin, 'n2to3'), stdin = stdin, cwd = os.path.join(self.examples_root, self.__class__.example_subdir), )
def run_genmap(self, rea_file=None, tol='0.5'): from lib.nekBinRun import run_meshgen cls = self.__class__ if not rea_file: rea_file = cls.case_name run_meshgen(command=os.path.join(self.tools_bin, 'genmap'), stdin=[rea_file, tol], cwd=os.path.join(self.examples_root, cls.example_subdir), verbose=self.verbose)
def run_genmap(self, rea_file=None, tol='0.5'): from lib.nekBinRun import run_meshgen cls = self.__class__ if not rea_file: rea_file = cls.case_name run_meshgen( command = os.path.join(self.tools_bin, 'genmap'), stdin = [rea_file, tol], cwd = os.path.join(self.examples_root, cls.example_subdir), verbose = self.verbose )
def run_genbox(self, box_file=None): from lib.nekBinRun import run_meshgen if not box_file: box_file = self.__class__.case_name # Fix extension, in case user doesn't provide it root, ext = os.path.splitext(box_file) if ext != '.box': box_file = root + ext + '.box' run_meshgen(command=os.path.join(self.tools_bin, 'genbox'), stdin=[box_file], cwd=os.path.join(self.examples_root, self.__class__.example_subdir), verbose=self.verbose)
def run_genbox(self, box_file=None): from lib.nekBinRun import run_meshgen if not box_file: box_file = self.__class__.case_name # Fix extension, in case user doesn't provide it root, ext = os.path.splitext(box_file) if ext != '.box': box_file = root + ext + '.box' run_meshgen( command = os.path.join(self.tools_bin, 'genbox'), stdin = [box_file], cwd = os.path.join(self.examples_root, self.__class__.example_subdir), verbose = self.verbose )