Fedora :: Fortran Program Gives Different Results Between F15 I686 And X86_64
Sep 2, 2011
I am having a problem with a simple program I wrote in Fortran (gfortran). This program basically reads a long list of numbers and makes some operations with them. Double precision is used in the variables and functions, and AFAIK everything is in order with the program. The thing is that I accidentally noticed that said program yields different results, and I am talking about integers being different, something noticeable. Apparently the offending chunk of code might be:
Code:
DOUBLE PRECISION FUNCTION tamano (x1,y1,z1)
DOUBLE PRECISION x1,y1,z1
tamano=dsqrt((x1)**2+(y1)**2+(z1)**2)
[code]....
One of the involved machines has F15 x86_64 and the other one F15 i686. My first guess is that this has something to do with how Fortran handles precision (which I supposed was the same for 32 and 64 bits). To compile the program I use:
Code:
gfortran --free-form -fno-whole-file program.f90
Is there another option I should pass the compiler to make sure the same precision is used in both cases? Or what can I do here?
I have both glibc.i686 and glibc.x86_64 installed in Fedora 14 because I have programs that require both. Using a yum update gives me the following error: file /usr/share/doc/glibc-2.12.90/NEWS from install of glibc-2.12.90-19.i686 conflicts with file from package glibc-2.12.90-18.x86_64
What is the best way to work around this issue? Trying an "yum update glibc.x86_64" gives me the corresponding opposite error. Doing a "yum update glibc.i686 glibc.x86_64" gives a longer list of dependency conflicts with glibc-headers and glibc-common.
I'm installing x86_64 F14 on my Lenovo T61p, but I'm missing the i686 xorg-x11-drv-nvidia-173xx-libs in rpmfusion. Am I the only one or Is there a reason?
Edit: wine 32bit and Google Earth for example need them....
I am trying to store the results of my code to a separate text file.But the problem is, as my results comes from a loop, my text file shows only the last result, not all of them.Like if the loop runs 5 time the text file shows the result for the 5th step.But i need to store all of them (1 to 5).Can I use awk to print the output field and store to another file and creat a new line so that the next output field goes to a new line?(just an idea, dont know).
#!/bin/basth for (( i=1; i<=5; i++)) do ./file.exe > output.txt done
I just bought a new laptop and installed Fedora 14 on it. I now just noticed that I must have been very sloppy when selecting the download CD, because somehow I managed to install the 32-bit i686 version instead of the 64-bit x86_64.
Is there a way to change without wiping out the existing install and do a reinstall?
When I install wine the add/remove program wants to install both 86_64 and i686 files. I have the x86_64 version of Fedora 14. I am having problems with counterstrike and have installed it using Wine, have noted problems when both types of files are installed.
I would like to have Fedora set up just right but as with all Linux distros, am having trouble keeping my head above water with fc14. I have success up to a point and then want to go back to Windows for its simplicity. Just this wine problem
Code: $ su -c 'yum install wine' this forum won't let me put all the text in Transaction Check Error: package openldap-2.4.21-6.fc13.x86_64 (which is newer than openldap-2.4.21-4.fc13.i686) is already installed package nss-softokn-freebl-3.12.4-19.fc13.x86_64 (which is newer than nss-softokn-freebl-3.12.4-17.fc13.i686) is already installed
I have a program which reads some parameters in from an input file before solving a differential equation. This program compiles fine, I'm using Numerical Algorithms Group (NAG) libraries to solve the differential equation so I'm also the NAG compiler called nagfor.
The namelist I have is declared as follows:
And the input file is:
When I run the code I get the following error message:
I really can't see what's wrong with this code.
Also, I'm using Fedora 11, and running the code in tcsh if this is relevant.
i am graduate student and my X colleague gave me this Fortran 77 program to run my result files with. She is no longer reachable. I compiled the following program with gfortran, it compiled well but, when i run it, gave me end of file error. My output file (which is the input file for this program (DFILE1) ) has about 78,000 lines of velocities of atoms (Vx, Vy, Vz with 1000 steps.. an example of some of the atom's velocities in the 1st step is given at the end of this program). I will be highly obliged if any one can help me with this.I run this program on opensuse linux 11.3 version /32 bit/i586
error message:
Code: At line 124 of file v.autocorrelation.f (unit = 10, file = 'DFILE1') Fortran runtime error: End of file
Code: PROGRAM TCORR
COMMON / BLOCK1 / STORX, STORY, STORZ COMMON / BLOCK2 / VX, VY, VZ COMMON / BLOCK3 / VACF, ANORM C ******************************************************************* code....
I have a new problem; i want to call a subroutine's fortran which have a function in the argument and the compilation ran properly, but when i execute the program this shows me an "Segmentation fault". This is my c++ program:
I want to compile MFiX which is a simulation software. Therefore, I installed the Intel Fortran Compiler Ver. 11.x When compiling, I can only choose between Ver.9.x and 10.x.
This is a part of the error message when choosing either:
Is there a possibility to link the program to the newer compiler version?
I am having trouble with encryption/ decryption program. The program goes out and finds the file I want it to, encrypts it into a continuing series of a single repeated negative number, then generally decrypts(or should i say re-encrypts)it into a widely repeated character, different but same results every time.
I used wait4 to time a child process. but the results differ each other dramatically. why?my core source code lists as below.to the point: in linux 2.6 kernel, how to time a process with a high precision. and, only its user-time rather than the elapsed time???
static struct rusage ruse; static pid_t u_pid; int main(int argc, char *argv[]) { int i; code....
Last nights upgrade of java-1.6.0-openjdk-1.6.0.0-43.1.8.2.fc13.i686 and java-1.6.0-openjdk-plugin-1.6.0.0-43.1.8.2.fc13.i686 prevent the loading of Ameritrades Command Center.Downgrading to version 1.6.0.0-37 fixes the problem. I'll post the bugzilla number as soon as I get the chance to file it.
How can I compile a C++ application using g++ with x86 platform settings on a x86_64 machine ? What are the possible negative side-effects of compiling a C++ application with x86 settings on a x86_64 platform ?
when ever i try to install updates i get shown an error & the updates stop the error i get says "librpmio.so.0 is needed by package abrt-1.0.3-1.fc12.i686 (updates) librpm.so.0 is needed by package abrt-1.0.3-1.fc12.i686 (updates)"
This call cant run my fortran program because they output to the screen that the file ' ' (empty) cant be loaded!
So the problem is that my program cant see the file in the long path name above ( the real name is a bit more longer). I try with shorts path names , and the program can run, reading the input file.
I googleit for this type of error and only found that bash have limits on the filenames and inputs, so i change them (/usr/local/linux/limits.h or some like) to a very high value (999) ,but no success.
Attempting to compile an application that is not located in any of the repos yet for 11.3 64 bit. I have downloaded the appropriate src and untarred it. However, when I attempt to run the ./configure command here is the error I receive. checking build system type... Invalid configuration `x86_64-unknown-linux-': machine `x86_64-unknown-linux' not recognized configure: error: /bin/sh ./config.sub x86_64-unknown-linux- failed
I have made sure that I have all kernel-headers packages installed and am unsure as how to proceed. I tried using the command "./configure --build=x86_64" and then receive an error stating that the "SYSTEM IS NOT SUPPORTED" and continued errors stating that gcc is not installed, eve though it is.
When I try to install (using yum) various things like wine in 64-bit F12, I get
Code: Missing dependency: glibc-common = 2.11-2 is needed by package glibc-2.11-2.i686 (fedora) What is currently installed is glibc-common-2.11-4.x86_64
I have an Acer Aspire 3680 with Fedora 12 on it which has been running just fine until I did some updates last night then shut down and tried to turn it on this afternoon.Whenever I try to boot up my laptop I get the following error message:
Code: [drm:drm_mode_rmfb] *ERROR* tried to remove a fb that we didn't own Boot has failed, sleeping forever.
i have F12 with kernel 2.6.32.11-99.fc12.i686.PAE. But i just have 2gb ram, so im not really needing to use a PAE kernel. So i was thinking on change my kernel to a 2.6.32 generic, but the fact is that im not sure if i can do that, and i could, how??