Re: variable content lost
- From: Louis Krupp <lkrupp@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 31 Mar 2007 01:31:43 -0600
Listad wrote:
Hi,What version?Target: powerpc-apple-darwin8
Configured with: ../gcc/configure --prefix=/usr/local/gfortran --
enable-languages=c,fortran --with-gmp=/tmp/gfortran-20070325/
gfortran_libs --enable-bootstrap --target=powerpc-apple-darwin8 --
host=powerpc-apple-darwin8 --build=powerpc-apple-darwin8 --disable-
multilib
Thread model: posix
gcc version 4.3.0 20070325 (experimental)
I downloaded this version with an installer, did not compile it
myself.
Try adding -Wall -pedantic to your commandline.Done. No problems except some 'non-standard tabs'.
I uploaded the whole module, so that you can get a more complete
picture. I commented those functions that are in external modules.
http://listad.ifastnet.com/fortran/conductivity.f90
If I am indeed messing around with unallocated memory, then I cannot
find where. outside this module the values are all correct (main
program).
Lahey http://www.lahey.com/check.htmthanks for the online checker, very useful. It also only complains
about non-conform tabstops (why is that?)
gdb (which you should have since you're using gcc) might let you set a watchpoint at the affected variable, fib%r(id,1), before you call segment_distance. gdb should stop when that spot in memory is changed.
Louis
.
- References:
- variable content lost
- From: listad
- Re: variable content lost
- From: Steven G. Kargl
- Re: variable content lost
- From: Listad
- variable content lost
- Prev by Date: reading back a partially-written record on direct access
- Next by Date: Importing from Microsoft Access in Fortran
- Previous by thread: Re: variable content lost
- Next by thread: reading back a partially-written record on direct access
- Index(es):
Relevant Pages
|