Author Topic: Compiler related problems  (Read 8987 times)

MarkusB

  • New Member
  • *
  • Posts: 9
Compiler related problems
« on: November 11, 2013, 01:42:06 PM »
Hi all!

Long story short: I've two compiler related "problems" to report.

1) Using ifort version 14.0.1 and intel specific options preexisting in makefile.in
Feap 8.4 (the serial stuff) does not compile: " pflush.f(29): error #6505: This intrinsic procedure reference contains too few arguments.   [FLUSH] "
This is due to the use of "flush()" without any arguments. FLUSH by standard has to have an argument. It is (only?) gfortran, which accepts flush without any arguments to flush all buffers.
How can I fix this?

2) Parallel FEAP 8.4 (compiled using gfortran 4.8.1) crashes upon trying to partition large files.
In my case I tried to partition a file with the following header
"FEAP xx xx xx
     6323548     5957150           2  3  3  8
"
into two partitions (this is just a testfile).
FEAP often but not always crashes with a segfault...
The reason is imho a bug in gfortran not FEAP. Basically it is the list IO read statement in pfeap that crashes (segfault); found using gdb.
Here is a detailed explanation (although the gfortran version is a bit older) on stackoverflow: http://stackoverflow.com/questions/17682635/reading-unformatted-text-data-with-fortran-differences-with-gfortran-and-intel
Did anyone else experience such odd behaviour?

Thanks!

Cheers,  Markus


Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2647
Re: Compiler related problems
« Reply #1 on: November 11, 2013, 02:17:12 PM »
The simplest fix is to just comment the statement.  It appears in /unix/pflush.f

It does not affect anything probably.  It was originally intended to flush prints to screen.


MarkusB

  • New Member
  • *
  • Posts: 9
Re: Compiler related problems
« Reply #2 on: November 11, 2013, 02:36:01 PM »
Dear Professor Taylor,

@ 1)
 Works! :)

@ 2)
By using the Intel compilers I was able to workaround this particular problem.


Many thanks.

Cheers, Markus