def __init__(self, name, params): RunApp.__init__(self, name, params) self.moose_dir = os.environ.get( 'MOOSE_DIR', os.path.abspath( os.path.join(os.path.dirname(os.path.realpath(__file__)), '..'))) if os.environ.has_key("LIBMESH_DIR"): self.libmesh_dir = os.environ['LIBMESH_DIR'] else: self.libmesh_dir = os.path.join(self.moose_dir, 'libmesh', 'installed') if self.specs['turn_off_exodus_output']: self.specs['cli_args'][:0] = ['Outputs/exodus=false'] if map(int, util.getPetscVersion(self.libmesh_dir).split(".")) < [3, 9]: self.old_petsc = True self.specs['cli_args'].extend( ['-snes_type test', '-snes_mf_operator 0']) else: self.old_petsc = False self.specs['cli_args'].extend( ['-snes_test_jacobian', '-snes_force_iteration']) if not self.specs['run_sim']: self.specs['cli_args'].extend([ '-snes_type', 'ksponly', '-ksp_type', 'preonly', '-pc_type', 'none', '-snes_convergence_test', 'skip' ])
def __init__(self, name, params): RunApp.__init__(self, name, params) self.moose_dir = os.environ.get( 'MOOSE_DIR', os.path.abspath( os.path.join(os.path.dirname(os.path.realpath(__file__)), '..'))) if os.environ.has_key("LIBMESH_DIR"): self.libmesh_dir = os.environ['LIBMESH_DIR'] else: self.libmesh_dir = os.path.join(self.moose_dir, 'libmesh', 'installed') if util.getPetscVersion(self.libmesh_dir) < '3.9': self.specs['cli_args'].append('-snes_type test') else: self.specs['cli_args'].extend( ['-snes_test_jacobian', '-snes_force_iteration']) if not self.specs['run_sim']: self.specs['cli_args'].extend([ '-snes_type', 'ksponly', '-ksp_type', 'preonly', '-pc_type', 'none', '-snes_convergence_test', 'skip' ])
def __init__(self, name, params): RunApp.__init__(self, name, params) self.moose_dir = os.environ.get('MOOSE_DIR', os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..'))) if os.environ.has_key("LIBMESH_DIR"): self.libmesh_dir = os.environ['LIBMESH_DIR'] else: self.libmesh_dir = os.path.join(self.moose_dir, 'libmesh', 'installed') if util.getPetscVersion(self.libmesh_dir) < '3.9': self.specs['cli_args'].append('-snes_type test') else: self.specs['cli_args'].extend(['-snes_test_jacobian', '-snes_force_iteration']) if not self.specs['run_sim']: self.specs['cli_args'].extend(['-snes_type', 'ksponly', '-ksp_type', 'preonly', '-pc_type', 'none', '-snes_convergence_test', 'skip'])
def __init__(self, name, params): RunApp.__init__(self, name, params) self.moose_dir = os.environ.get('MOOSE_DIR', os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..'))) if os.environ.has_key("LIBMESH_DIR"): self.libmesh_dir = os.environ['LIBMESH_DIR'] else: self.libmesh_dir = os.path.join(self.moose_dir, 'libmesh', 'installed') if self.specs['turn_off_exodus_output']: self.specs['cli_args'][:0] = ['Outputs/exodus=false'] if map(int, util.getPetscVersion(self.libmesh_dir).split(".")) < [3, 9]: self.old_petsc = True self.specs['cli_args'].append('-snes_type test') else: self.old_petsc = False self.specs['cli_args'].extend(['-snes_test_jacobian', '-snes_force_iteration']) if not self.specs['run_sim']: self.specs['cli_args'].extend(['-snes_type', 'ksponly', '-ksp_type', 'preonly', '-pc_type', 'none', '-snes_convergence_test', 'skip'])
combination_dofs[idx] = [dof] #combinations = [] #for kernels in combination_dofs : # print kernels moose_dir = os.environ.get( 'MOOSE_DIR', os.path.abspath( os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))) if os.environ.has_key("LIBMESH_DIR"): libmesh_dir = os.environ['LIBMESH_DIR'] else: libmesh_dir = os.path.join(moose_dir, 'libmesh', 'installed') new_petsc = util.getPetscVersion(libmesh_dir) >= '3.9' # build the parameter list for the jacobian debug run mooseparams = moosebaseparams[:] if not options.noauto: if new_petsc: petsc_test_options = [ '-snes_test_jacobian', '-snes_test_jacobian_view', '-snes_type', 'ksponly', '-ksp_type', 'preonly', '-pc_type', 'none', '-snes_convergence_test', 'skip' ] else: petsc_test_options = ['-snes_type', 'test', '-snes_test_display'] mooseparams.extend(petsc_test_options + [ '-mat_fd_type', 'ds', 'BCs/active=', 'Outputs/exodus=false',
combination_dofs[idx].append(dof) else : combination_dofs[idx] = [dof] #combinations = [] #for kernels in combination_dofs : # print kernels moose_dir = os.environ.get('MOOSE_DIR', os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))) if os.environ.get("LIBMESH_DIR"): libmesh_dir = os.environ['LIBMESH_DIR'] else: libmesh_dir = os.path.join(moose_dir, 'libmesh', 'installed') new_petsc = list(map(int, util.getPetscVersion(libmesh_dir).split("."))) >= [3, 9] # build the parameter list for the jacobian debug run mooseparams = moosebaseparams[:] if not options.noauto : if new_petsc: petsc_test_options = ['-snes_test_jacobian', '-snes_test_jacobian_view', '-snes_type', 'ksponly', '-ksp_type', 'preonly', '-pc_type', 'none', '-snes_convergence_test', 'skip', '-snes_test_jacobian_display_threshold', '1e-10'] else: petsc_test_options = ['-snes_type', 'test', '-snes_test_display'] mooseparams.extend(petsc_test_options + ['-mat_fd_type', 'ds', 'BCs/active=', 'Outputs/exodus=false', 'Outputs/csv=false', 'Outputs/active=', 'Executioner/solve_type=NEWTON', '--no-gdb-backtrace']) if options.cli_args != None:
#combinations = [] #for kernels in combination_dofs : # print kernels moose_dir = os.environ.get( 'MOOSE_DIR', os.path.abspath( os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))) if os.environ.has_key("LIBMESH_DIR"): libmesh_dir = os.environ['LIBMESH_DIR'] else: libmesh_dir = os.path.join(moose_dir, 'libmesh', 'installed') new_petsc = map(int, util.getPetscVersion(libmesh_dir).split(".")) >= [3, 9] # build the parameter list for the jacobian debug run mooseparams = moosebaseparams[:] if not options.noauto: if new_petsc: petsc_test_options = [ '-snes_test_jacobian', '-snes_test_jacobian_view', '-snes_type', 'ksponly', '-ksp_type', 'preonly', '-pc_type', 'none', '-snes_convergence_test', 'skip', '-snes_test_jacobian_display_threshold', '1e-10' ] else: petsc_test_options = ['-snes_type', 'test', '-snes_test_display'] mooseparams.extend(petsc_test_options + [
combination_dofs[idx].append(dof) else : combination_dofs[idx] = [dof] #combinations = [] #for kernels in combination_dofs : # print kernels moose_dir = os.environ.get('MOOSE_DIR', os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))) if os.environ.has_key("LIBMESH_DIR"): libmesh_dir = os.environ['LIBMESH_DIR'] else: libmesh_dir = os.path.join(moose_dir, 'libmesh', 'installed') new_petsc = map(int, util.getPetscVersion(libmesh_dir).split(".")) >= [3, 9] # build the parameter list for the jacobian debug run mooseparams = moosebaseparams[:] if not options.noauto : if new_petsc: petsc_test_options = ['-snes_test_jacobian', '-snes_test_jacobian_view', '-snes_type', 'ksponly', '-ksp_type', 'preonly', '-pc_type', 'none', '-snes_convergence_test', 'skip', '-snes_test_jacobian_display_threshold', '1e-10'] else: petsc_test_options = ['-snes_type', 'test', '-snes_test_display'] mooseparams.extend(petsc_test_options + ['-mat_fd_type', 'ds', 'BCs/active=', 'Outputs/exodus=false', 'Outputs/csv=false', 'Outputs/active=', 'Executioner/solve_type=NEWTON', '--no-gdb-backtrace']) if options.cli_args != None:
combination_dofs[idx].append(dof) else : combination_dofs[idx] = [dof] #combinations = [] #for kernels in combination_dofs : # print kernels moose_dir = os.environ.get('MOOSE_DIR', os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))) if os.environ.has_key("LIBMESH_DIR"): libmesh_dir = os.environ['LIBMESH_DIR'] else: libmesh_dir = os.path.join(moose_dir, 'libmesh', 'installed') new_petsc = util.getPetscVersion(libmesh_dir) >= '3.9' # build the parameter list for the jacobian debug run mooseparams = moosebaseparams[:] if not options.noauto : if new_petsc: petsc_test_options = ['-snes_test_jacobian', '-snes_test_jacobian_view', '-snes_type', 'ksponly', '-ksp_type', 'preonly', '-pc_type', 'none', '-snes_convergence_test', 'skip'] else: petsc_test_options = ['-snes_type', 'test', '-snes_test_display'] mooseparams.extend(petsc_test_options + ['-mat_fd_type', 'ds', 'BCs/active=', 'Outputs/exodus=false', 'Outputs/csv=false', 'Outputs/active=', 'Executioner/solve_type=NEWTON', '--no-gdb-backtrace']) if options.cli_args != None: mooseparams.extend([options.cli_args])