Skip to content

Mumps wrapper #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

Matteo-Coppellotti
Copy link

Added mumps.h wrapper for MUMPS and a directory for testing the new header called mumps_testing. In here you will find a custom CMakeLists.txt file that does the linking with Fortran in order to let the wrapper work. To make sure that the tests compile correctly the user_config.cmake file should be changed to manually set the directories.
I provided two shell bash scripts in this folder:

  • matrix_generator.sh randomly generates the matrices used for the testing according to a given seed:
    ./matrix_generator.sh [SEED]. If omitted, 42 is used as default seed.
  • run_tests.sh emulates the script with the same name in the directory test with minor changes (the test run is done with mpirun --use-hwthread-cpus and the output is copied to the file test_output.log)

In the tests, rand_indices.h is used to generate random indices to test a couple of methods, currently the seed is set as 42 but it can be manually changed in the file itself, it's a global constexpr int that can be found at the start of the code after the includes (there is also the option to make it unseeded by switching the corresponding constexpr bool to false).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant