|
It Hurts When I Do This -- diversion... Steve Lionel wrote: .... In the interest of full disclosure, I no longer write compilers - I'm now on the support side. I was a compiler developer for 15 years (and a libraries developer for 10 before that). ... That's good enough to qualify for me... :) Speaking of support, if you happen to see th... 22 Apr 2008 16:25
Distinguishing between characters and numbers I have built the following program with both ifort (Intel) and g95 but they yield different results: program ex implicit none real(8) :: x integer :: n character(10) :: buff do write(6,'(a)',advance='no') '> ' read(5,*) buff read(buff,*,err=900) x write(6,'(2a)') 'Number:',t... 22 Apr 2008 14:48
use module to pass data between procedures Hi I'd like to use module to pass data between procedures. In the following, subroutine FCN is an argument of subroutine CDGRD which calculates gradient (IMSL). I have comment those statements related to IMSL. module shared_data implicit none save real,dimension(2) :: y end module shared_data module ... 24 Apr 2008 23:48
comp.lang.fortran charter <br /> </legend> <form onSubmit="return checkrequired(this)" class="quicksignup" action="https://secure.whatcounts.com/bin/listctrl" method="post"> <input type="hidden" name="slid" value="4EB045FEF697325822149897002241924C9BCA62652FFD01"> <input type="hidden" name="cmd" value="subscribe"> <input type="... 22 Apr 2008 00:36
Advice on how to keep track of allocated memory I'd like to ask for a piece of advice. I would like, every time I allocate or deallocate arrays: 1) To check allocation or deallocation flag and to stop the program printing a useful error message is there is an error 2) To print the amount of memory allocated/deallocated and the total system memory used 3) T... 21 Apr 2008 14:56
Summing array elements What would be the shortest way to sum some elements of an array? For example from 5 to 50. I know the "obvious" way to do it: s=0. do 1 i=5,50 s=s+a(i) 1 continue but since I'm currently doing something which requires quite a number of summing, I was wondering is there something shorter ? Any idead appre... 23 Apr 2008 01:11
Call Array valued Fortran function from C Dear all, I have a problem that can be reduced to the following situation: - mainf.f90 (see below) a Fortran function that returns an array containing n-copy's of a given double precision number. - mainc.c (see below) a C-file that would like to use this function. The problem is that i... 20 Apr 2008 23:33
A digression This came up accidentally when someone asked for a copy of an old program, and I found how D... big it was compared to what I am used to passing around. I have these two menu programs, one written in my usual F77style and compiled with MS 3.31, which came to 44,676 bytes as an executable, and which runs in DOS ... 20 Apr 2008 20:23
It Hurts When I Do This http://softwareblogs.intel.com/2008/03/31/doctor-it-hurts-when-i-do-this/ But we NEED a syntax that means "the entire array". Code should be self documenting. Of course, I typically just name arrays so that it's clear that it is an array (aArray, bArray, cArray), but it is fairly natural to want to specify a wi... 21 Apr 2008 23:44
compile errors, please help. Hi all, I am compiling a fortran program. The g77 gave me some errors or warnings like following... ---------------------------------------------------------------------- pvar.for:317: DEALLOCATE(IA,RA) ^ Invalid declaration of or reference to symbol `deallocate' at (^) [initially seen at ... 20 Apr 2008 08:21 |