Meaning of INT(x) function for negative numbers1948 (10/1/2008 4:23:38 PM) comp.lang.fortran A Microsoft definition of Int(x) I found on http://support.microsoft.com/kb/80405 is: "The Int function converts a numeric expression to the largest integer less than or equal to the expression." This means i... ferrad
Read format question338 (8/22/2008 10:04:58 AM) comp.lang.fortran This should be simple, but I can't get it to work. I have a data file consisting of a number of lines of data, each line containing an integer then either nothing or a second bit of data which can be real or an... ferrad
Trying to use a logical as an array index4442 (7/10/2008 2:32:46 PM) comp.lang.fortran I am trying to print out True and False instead of T and F. I would like to use a logical as an array index, but can't in F90. I have tried the following, and it works on Intel v10, but will it always work, i... ferrad
How do add decoration to imported subroutines in Intel Compiler?134 (7/27/2007 8:34:08 AM) comp.lang.fortran Our build machine compiles a Fortran file using the Intel compiler v9.1.024. Doing a dumpbin on the object shows that a routine imported from a linked-in library is specified as AYNUMI@0 and is indeed represen... ferrad
File processing - is Python suitable?410 (6/19/2007 12:15:17 PM) comp.lang.python I have not used Python before, but believe it may be what I need. I have large text files containing text, numbers, and junk. I want to delete large chunks process other bits, etc, much like I'd do in an edit... ferrad
Syntax or NAMELIST'ing COMMON blocks?566 (8/23/2006 4:50:57 PM) comp.lang.fortran Is it possible to NAMELIST a COMMON block by name rather than list all the variables? ie integer a, a1 integer b(20) real*8 c real*8 d(10) logical e common /list/ a,a1,b,c... ferrad
Viewing Double Prescision reals as Integers2731 (7/25/2006 6:16:15 PM) comp.lang.fortran Say I have a common: double precision r1 common /doubint/ r1 and another common elsewhere: integer i1, i2 common /doubint/ i1, i2 Then will the two halves of the variable r1 always translate into valid inte... ferrad
Differences between text file formats in Fortran and C?446 (1/20/2006 9:23:33 PM) comp.lang.fortran I have a bit of Fortran code which opens a text file, writes to it, and closes it. It then calls a C DLL which opens the file for appending. This open fails with: ERROR_ALREADY_EXISTS // The system cannot c... ferrad
NULL returned by fopen - where is a list of what's causing the error?3633 (1/20/2006 4:35:01 PM) comp.lang.c I am trying to open a file for appending. ie. if the file exists, open it for appending, if not, create it. I am getting back a NULL pointer, and do not know why. Here is my code: FILE *pFile; char *cFileNa... ferrad
Passing address of a C function to Fortran - syntax??417 (11/23/2004 10:31:57 PM) comp.lang.c I am trying to pass the address of a C++ function into a Fortran routine to enable the Fortran routine to call this C++ function. I have to do it this way as our build process does not allow circular dependenc... acfer(43)
Upgrading from DVF 6.0A to IVF 8.1225 (4/13/2005 5:07:42 PM) comp.lang.fortran a. Does the Intel White Paper on upgrading from CVF 6.6A to IVF 8.1 apply to an upgrade from DVF 6.0A to IVF 8.1? If not, is there some documentation on what further needs to be done to get DVF 6.0A code to wo... acfer(43)
Differences between text file formats in Fortran and C?446 (1/20/2006 9:23:33 PM) comp.lang.fortran I have a bit of Fortran code which opens a text file, writes to it, and closes it. It then calls a C DLL which opens the file for appending. This open fails with: ERROR_ALREADY_EXISTS // The system cannot c... acfer(43)
Viewing Double Prescision reals as Integers2731 (7/25/2006 6:16:15 PM) comp.lang.fortran Say I have a common: double precision r1 common /doubint/ r1 and another common elsewhere: integer i1, i2 common /doubint/ i1, i2 Then will the two halves of the variable r1 always translate into valid inte... acfer(43)
Trying to use a logical as an array index4442 (7/10/2008 2:32:46 PM) comp.lang.fortran I am trying to print out True and False instead of T and F. I would like to use a logical as an array index, but can't in F90. I have tried the following, and it works on Intel v10, but will it always work, i... acfer(43)
Meaning of INT(x) function for negative numbers1948 (10/1/2008 4:23:38 PM) comp.lang.fortran A Microsoft definition of Int(x) I found on http://support.microsoft.com/kb/80405 is: "The Int function converts a numeric expression to the largest integer less than or equal to the expression." This means i... acfer(43)