Skip to content

Commit

Permalink
patch a segfaulting test for NECI
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrKralCZ committed Nov 21, 2024
1 parent c3b3f1d commit 70b7ff6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
6 changes: 5 additions & 1 deletion easybuild/easyconfigs/n/NECI/NECI-20230620-foss-2023a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ sources = [{
},
'filename': SOURCE_TAR_GZ,
}]
checksums = [None]
patches = ['NECI-20230620_segfault.patch']
checksums = [
None,
'f0b5f62e115a1e07d6b90bc66ee9957a5f5d686bef65beba9c2be4bd8f29f0e4',
]

builddependencies = [
('CMake', '3.26.3'),
Expand Down
21 changes: 21 additions & 0 deletions easybuild/easyconfigs/n/NECI/NECI-20230620_segfault.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Fixes SEGFAULT error in tests.
See https://github.com/ghb24/NECI_STABLE/issues/18
Author: Petr Král (INUITS)
--- unit_tests/back_spawn_excit_gen/test_back_spawn_excit_gen.F90.orig 2023-06-20 10:15:17.000000000 +0200
+++ unit_tests/back_spawn_excit_gen/test_back_spawn_excit_gen.F90 2024-11-21 14:58:46.602604509 +0100
@@ -64,6 +64,7 @@
nmaxy = 2
nmaxz = 2
allocate(KPointToBasisFn(-nmaxx:nmaxx, -nmaxy:nmaxy, -nmaxz:nmaxz, 2))
+ KPointToBasisFn = -1
tOrbECutoff = .false.

allocate(projedet(nel,1)); projedet(:,1) = [1,2]
@@ -403,6 +404,7 @@
tOrbECutoff = .false.
niftot = 1
allocate(KPointToBasisFn(-nmaxx:nmaxx, -nmaxy:nmaxy, -nmaxz:nmaxz, 2))
+ KPointToBasisFn = -1

t_back_spawn_flex = .true.
occ_virt_level = 0

0 comments on commit 70b7ff6

Please sign in to comment.