예제 #1
0
    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'
                ])
예제 #2
0
    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'
                ])
예제 #3
0
    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'])
예제 #4
0
    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'])
예제 #5
0
            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',
예제 #6
0
            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:
예제 #7
0
    #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 + [
예제 #8
0
            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:
예제 #9
0
            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])