|
Is a temporary SCRATCH file formatted or unformatted? Hi, everyone: A temporary SCRATCH file could be created by: open(unit=10,status="scratch") But is it a formatted or unformatted file? Thank you! ... 24 Jan 2008 08:53
mixed language programming - LNK2001 Hello everybody, I am trying to do a bit of mixed language programming, using fortran 90 and c++, meaning,that I want to have a fortran main program, calling a subroutine written in c++. here are my codes: the fortran main program: subroutine maximum(max) !DEC$ ATTRIBUTES STDCALL :: maximum integer(... 22 Jan 2008 15:09
TRANSFER on LOGICALs James Van Buskirk wrote: (snip) Oog. Looking at the C99 standard, I see that _Bool, although it's an integer type, has semantics distinct from int. In particular, when conversion to _Bool is required any mumeric value that isn't zero gets converted to 1 (didn't carefully check what happens to imag... 22 Jan 2008 16:16
REAL -> string -> REAL On Jan 22, 8:24 am, "FX" <coud...(a)alussinan.org> wrote: Most compilers should do what you describe (ie lossless I/O) when you use the default format: write (unit,*) my_real even though I'm not too sure this is actually required by the Standard. It's not required and you can't rely on this. I'... 22 Jan 2008 19:36
Compatibility of MOD files How come the .mod files are not compatible between different compilers? E.g., a .mod file produced by Intel Fortran Compiler (ifort) cannot be used by g95, etc. It's very cumbersome when installing some libraries with Fortran bindings - even if the library has been compiled and all the required .mod files are alrea... 24 Jan 2008 14:34
Is there a way to construct a generic "list" by Fortran 95? In my finite element program, I want the Load, Element ..... are defined by list type. If there is a generic list type can be defined by Fortran 95, it will be convenience. Then, it can be difine: Type(list) :: Load Type(list) :: Element ..... call add(Load, i) call add(Element, i) .... A generic list ty... 23 Jan 2008 19:43
gfortran -std=f95 overzealous? I use INDEX and LEN_TRIM in some initialization expressions and gfortran complains that their use here is an extension to the Fortran-95 standard. None of my other compilers complain (with f95 compliance ON) . The standard seems to say any intrinsic involving only integer and/or character types is allowed. Who's... 25 Jan 2008 04:19
TRANSFER on LOGICALs (was: Several questions about character C binding) James Van Buskirk wrote: .... [,,,] You know, a compiler could return .TRUE. for logical function is_broken() is_broken=transfer(transfer(2,.TRUE.).NEQV.transfer(4,.TRUE.),0)==1 end and one could argue forever about whether that is reasonable behavior, but it would not mean that th... 22 Jan 2008 01:42
FITS Library Package upgrade Hello, I have updated my FITS (Flexible Image Transport System) Library Package. Besides fixing a few bugs related to writing header keywords under certain conditions, the major improvement is that one can now write output to the input file even when the dimensions of an image extension have changed. One c... 20 Jan 2008 22:04
code to find average values Hi, Could you please give me some hints to find the average of the following value of 1.1, 2.2, 3.3 and 4.4 only, seperated with 3 others values, using Do Loop in Fortran 90: 1.1 2.0 3.0 4.0 2.2 2.2 2.0 3.0 4.0 3.3 3.3 2.0 3.0 4.0 4.4 4.4 2.0 3.0 So that I can get (1.1+2.2+2.2+3.3+3.3+4.4+... 20 Jan 2008 18:09 |