Skip to content
Snippets Groups Projects
Commit 4f591a6f authored by Ali Dorostkar's avatar Ali Dorostkar
Browse files

Step-40 test for 8.3.0 and earlier

Integrated part of step-40 to be tested for earlier versions of dealii
parent d7e84fe0
Branches
Tags
No related merge requests found
...@@ -228,29 +228,33 @@ def install(self, spec, prefix): ...@@ -228,29 +228,33 @@ def install(self, spec, prefix):
# take step-40 which can use both PETSc and Trilinos # take step-40 which can use both PETSc and Trilinos
# FIXME: switch step-40 to MPI run # FIXME: switch step-40 to MPI run
if spec.satisfies('@8.4.0:'): with working_dir('examples/step-40'):
with working_dir('examples/step-40'): print('=====================================')
print('=====================================') print('========== Step-40 PETSc ============')
print('========== Step-40 PETSc ============') print('=====================================')
print('=====================================') # list the number of cycles to speed up
# list the number of cycles to speed up filter_file(r'(const unsigned int n_cycles = 8;)',
filter_file(r'(const unsigned int n_cycles = 8;)', ('const unsigned int n_cycles = 2;'), 'step-40.cc')
('const unsigned int n_cycles = 2;'), 'step-40.cc') cmake('.')
cmake('.') if '^petsc' in spec:
if '^petsc' in spec: make('release')
make('release') make('run', parallel=False)
make('run', parallel=False)
print('=====================================')
print('=====================================') print('========= Step-40 Trilinos ==========')
print('========= Step-40 Trilinos ==========') print('=====================================')
print('=====================================') # change Linear Algebra to Trilinos
# change Linear Algebra to Trilinos if spec.satisfies('@8.4.0:'):
filter_file(r'(\/\/ #define FORCE_USE_OF_TRILINOS.*)', filter_file(r'(\/\/ #define FORCE_USE_OF_TRILINOS.*)',
('#define FORCE_USE_OF_TRILINOS'), 'step-40.cc') ('#define FORCE_USE_OF_TRILINOS'), 'step-40.cc')
if '^trilinos+hypre' in spec: else:
make('release') filter_file(r'(#define USE_PETSC_LA.*)',
make('run', parallel=False) ('// #define USE_PETSC_LA'), 'step-40.cc')
if '^trilinos+hypre' in spec:
make('release')
make('run', parallel=False)
if spec.satisfies('@8.4.0:'):
print('=====================================') print('=====================================')
print('=== Step-40 Trilinos SuperluDist ====') print('=== Step-40 Trilinos SuperluDist ====')
print('=====================================') print('=====================================')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment