forked from easybuilders/easybuild-easyconfigs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix mpi include issue, see wannier-developers/wannier90#521
- Loading branch information
Stefan Wolfsheimer
committed
Oct 21, 2024
1 parent
9586443
commit 091cfe5
Showing
6 changed files
with
51 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
easybuild/easyconfigs/w/Wannier90/Wannier90_3.1.0_fix_mpi_include.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Use "use mpi" to load all required interfaces. | ||
See https://github.com/wannier-developers/wannier90/issues/521 | ||
Author: Stefan Wolfsheimer (SURF) | ||
|
||
|
||
diff -ruN wannier90-3.1.0.orig/src/comms.F90 wannier90-3.1.0/src/comms.F90 | ||
--- wannier90-3.1.0.orig/src/comms.F90 2020-03-05 19:41:10.000000000 +0100 | ||
+++ wannier90-3.1.0/src/comms.F90 2024-10-21 17:01:00.542755184 +0200 | ||
@@ -23,15 +23,13 @@ | ||
|
||
use w90_constants, only: dp | ||
use w90_io, only: io_error | ||
- | ||
+#ifdef MPI | ||
+ use mpi | ||
+#endif | ||
implicit none | ||
|
||
private | ||
|
||
-#ifdef MPI | ||
- include 'mpif.h' | ||
-#endif | ||
- | ||
logical, public, save :: on_root | ||
!! Are we the root node | ||
integer, public, save :: num_nodes |