Skip to content

Commit

Permalink
patch to fix gcc-14 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
edoapra committed Feb 13, 2025
1 parent 0d05153 commit ea6115e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/tools/gasparse_patch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
rm -f gasparse.patch
cat > gasparse.patch <<EOF
--- $1/global/src/sparse.array.c
+++ $1/global/src/sparse.array.c
@@ -2738,7 +2738,7 @@
/* Set up global arrays to hold distributed indices and non-zero values */
{
int64_t isize = (rowdim+1)*nblocks;
- int64_t totalsize = 0;
+ Integer totalsize = 0;
Integer ndim = 1;
Integer *offset = (Integer*)malloc(nprocs*sizeof(Integer));
Integer *tmp = (Integer*)malloc(nprocs*sizeof(Integer));
EOF
patch -p0 -s -N < gasparse.patch
echo gasparse.patch applied

0 comments on commit ea6115e

Please sign in to comment.