Search found 5 matches

by Kitpaddel
27 Feb 2019, 00:26
Forum: Installation & compilation
Topic: Compilation fails at CRSMatrix.F90
Replies: 9
Views: 9865

Re: Compilation fails at CRSMatrix.F90

One of those just reappeared: /src/elmerfemgit/fem/src/DefUtils.F90:3219:11: SOL => x % Values 1 Error: Assignment to contiguous pointer from non-contiguous target at (1) make[2]: *** [fem/src/CMakeFiles/elmersolver.dir/build.make:882: fem/src/CMakeFiles/elmersolver.dir/DefUtils.F90.o] Error 1 make[...
by Kitpaddel
23 Jul 2018, 20:26
Forum: ElmerSolver
Topic: User defined subroutines with ANSI C
Replies: 3
Views: 2490

Re: User defined subroutines with ANSI C

Hi, you can combine fortran and c. I once wrote a wrapper udf function that called a c function. Wrapper something like this: FUNCTION udfcall(Model, n, var) RESULT(r) USE DefUtils use iso_c_binding interface function udfCallC (someConst, x, y, z, var) bind(c) use DefUtils use iso_c_binding REAL(KIN...
by Kitpaddel
24 Jun 2018, 17:10
Forum: Installation & compilation
Topic: Compilation fails at CRSMatrix.F90
Replies: 9
Views: 9865

Re: Compilation fails at CRSMatrix.F90

I wasn't able to figure out why ElementDescription.F90 does not compile, but a temporary workaround was to compile with: -DWITH_OpenMP:BOOL=FALSE Still, a lot of other files fail with the contiguous pointer error. I was able to compile by extensive usage of the CONTIG keyword. Find a patch in the at...
by Kitpaddel
11 Jun 2018, 22:08
Forum: Installation & compilation
Topic: Compilation fails at CRSMatrix.F90
Replies: 9
Views: 9865

Re: Compilation fails at CRSMatrix.F90

kataja wrote: 11 Jun 2018, 16:37 Hi,

I did a tentative fix on this at https://github.com/ElmerCSC/elmerfem/tr ... scontigfix. However, I seem to face a possible compiler bug with ElementDescription.F90:
Jup, I get the same error with gcc8.1 under Archlinux as well. CRSMatrix.F90 seems to compile with your fix.
by Kitpaddel
10 Jun 2018, 18:42
Forum: Installation & compilation
Topic: Compilation fails at CRSMatrix.F90
Replies: 9
Views: 9865

Re: Compilation fails at CRSMatrix.F90

Hi, I get the same error when compiling under Archlinux using gcc 8.1. Checking for this (non)-contiguous assignments seems to be a new feature of gcc 8.1 ( https://github.com/gcc-mirror/gcc/commit/f7f62573653da3e31a3a6e5869ffd2260445a395 ) with the gcc author stating, that he ( https://gcc.gnu.org/...