... | @@ -5,15 +5,22 @@ Testing interval permutation in Solver |
... | @@ -5,15 +5,22 @@ Testing interval permutation in Solver |
|
This test is located in Tests/solver_test000
|
|
This test is located in Tests/solver_test000
|
|
|
|
|
|
|
|
|
|
|
|
###Brief
|
|
|
|
|
|
|
|
|
|
Solvers should accept intervals without dependence on their order.
|
|
Solvers should accept intervals without dependence on their order.
|
|
|
|
|
|
|
|
|
|
|
|
##Description
|
|
|
|
|
|
Test generates simple matrix A = diag(10) and right hand side populated with local indexes for each processor r = (local_index_begin,local_index_end) and expect solver to return resulting vector x = (1/local_index_begin,1/local_index_end).
|
|
Test generates simple matrix A = diag(10) and right hand side populated with local indexes for each processor r = (local_index_begin,local_index_end) and expect solver to return resulting vector x = (1/local_index_begin,1/local_index_end).
|
|
|
|
|
|
|
|
|
|
Local indexes are computed from current processor number with processor shift provided by user.
|
|
Local indexes are computed from current processor number with processor shift provided by user.
|
|
|
|
|
|
|
|
|
|
|
|
##Arguments
|
|
|
|
|
|
The test have two parameters, the first parameter is permutation value, the second parameter indicates solver type.
|
|
The test have two parameters, the first parameter is permutation value, the second parameter indicates solver type.
|
|
|
|
|
|
|
|
|
... | @@ -30,10 +37,15 @@ For solver type argument the values have the following meaning: |
... | @@ -30,10 +37,15 @@ For solver type argument the values have the following meaning: |
|
* 7 - BiCG method with ILU2 preconditioner from ANI package
|
|
* 7 - BiCG method with ILU2 preconditioner from ANI package
|
|
|
|
|
|
|
|
|
|
|
|
##CMake tests
|
|
|
|
|
|
|
|
|
|
This test will seed solver_test000_serial_* tests for all activated solvers into CMake. Those test will check that solvers correctly get input and correctly output solution.
|
|
This test will seed solver_test000_serial_* tests for all activated solvers into CMake. Those test will check that solvers correctly get input and correctly output solution.
|
|
|
|
|
|
|
|
|
|
If USE_MPI is activated and CMake have variable ${MPIEXEC} set up correctly then the test will seed solver_test300_parallel_* tests. There test will check that solvers get input in parallel and correctly output solution as well as the solver will check correct functioning of permutation of local intervals. PETSc solver will avoid permutation test since it cannot handle the situation.
|
|
If USE_MPI is activated and CMake have variable ${MPIEXEC} set up correctly then the test will seed solver_test000_parallel_* tests. There test will check that solvers get input in parallel and correctly output solution as well as the solver will check correct functioning of permutation of local intervals. PETSc solver will avoid permutation test since it cannot handle the situation.
|
|
|
|
|
|
|
|
|
|
|
|
##Source
|
|
|
|
|
|
Test originated from [https://github.com/INM-RAS/INMOST/issues/6](https://github.com/INM-RAS/INMOST/issues/6) |
|
Test originated from [https://github.com/INM-RAS/INMOST/issues/6](https://github.com/INM-RAS/INMOST/issues/6) |
|
|
|
\ No newline at end of file |