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?

View 3 Replies


ADVERTISEMENT

Fedora :: Glibc Conflict Between I686 And X86_64?

Dec 3, 2010

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.

View 3 Replies View Related

Fedora :: Build Packages For I686 And X86_64 Without Virtual Machines?

Jun 26, 2011

I have small question about building packages: is it possible to build packages for i686 and x86_64 (without virtual machines?)

View 2 Replies View Related

Fedora :: I686 Xorg-x11-drv-nvidia-173xx-libs For F14 X86_64 Missing In Rpmfusion?

Nov 9, 2010

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....

View 1 Replies View Related

Fedora X86/64bit :: Same Fortran Code, Different Results For 32 And 64bit System?

Jan 15, 2010

I have the simple fortran codes as:

Code:
integer :: i1=2455121, i2=2455121
real :: s1=0.19123840, s2=0.20749992
real*8 :: a1, a2
a1=i1+s1; a2=i2+s2

[Code]....

When s1 and s2 are stated with 'real*8', the 64bit and 32bit systems get the same results.

View 6 Replies View Related

Programming :: Save The Results Of A Fortran Loop In A Text File?

Nov 2, 2010

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

View 2 Replies View Related

General :: What Is The Difference Between I686 And X86_64

Jan 26, 2011

I have an AMD Turion and do not know what to choose between these two versions to install Arch Linux.

View 3 Replies View Related

Ubuntu Servers :: Different Between X86 / I686 And X86_64

Aug 29, 2010

1) Differences between x86, i686, and x86_64

2) How to check if the processor is of 32 bit or 64 bit on Ubuntu

3) How to check if operating system(ubuntu) is of 32 bit or 64 bit

View 6 Replies View Related

General :: 64 Bit - Change From I686 (32-bit) To X86_64 Without A Complete Reinstall?

Feb 4, 2011

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?

View 1 Replies View Related

Fedora :: Installing Wine - Add / Remove Program Install Both 86_64 And I686 Files

Jul 7, 2011

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

View 1 Replies View Related

Fedora :: Error: Package Openldap-2.4.21-6.fc13.x86_64 (which Is Newer Than Openldap-2.4.21-4.fc13.i686

Jun 8, 2010

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

View 4 Replies View Related

Programming :: Get An Error Using A Namelist In A Fortran 90 Program ?

Aug 26, 2010

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.

View 1 Replies View Related

Ubuntu :: Error While Compiling Fortran Program With Gfortran

Apr 14, 2011

I've a FORTRAN program that I would like to compile in my machine. I've gfortran installed, so I issue the command: gfortran asc2bin.f write_geogrid.o

but this error are displayed

Code:
asc2bin.f:3.72:
INTEGER isigned,i,j,endian,wordsize,nx,ny,xllcorner,yllcorner,
1
Error: Invalid character in name at (1)

[Code].....

View 1 Replies View Related

Programming :: Fortran Program--encountered Run Time Error?

May 19, 2011

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....

View 6 Replies View Related

Ubuntu :: Debugging A Fortran Program - Cannot Create A Break Point

Feb 6, 2010

I have compiled a Fortran program by using

gfortran -ggdb file.f90

To try to step through it in the debugger, I enter

gdb a.out

but I cannot create a break point. I have tried a number of commands including

b <line number>
b <subroutine name>

View 1 Replies View Related

Programming :: C++ Program Calling A Fortran Subroutine With A Function In The Argument?

Mar 9, 2011

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:

Code: //Main.cpp
#include <stdio.h>
#include <iostream>

[code]....

View 2 Replies View Related

Software :: Intel Fortran Compiler - Program Does Not Find New Version

May 19, 2010

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'm using Centos 5.4.

View 5 Replies View Related

General :: Command To Compile And Execute Fortran Program On System Machine?

Apr 8, 2010

Command to compile n execute a Fortran program on a Linux machine

View 6 Replies View Related

Programming :: Encryption / Decryption Program - Getting Different Results Every Time

May 9, 2011

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.

[Code]....

View 3 Replies View Related

Programming :: Same Program Runs Multiple Times But Get Very Different Results?

Dec 7, 2010

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....

View 14 Replies View Related

Slackware :: Run 32bit Program On X86_64?

Apr 8, 2011

I'm an new to Slackware.I want to ask how to run 32bit program on x86_64.
My Slackware is 13.1 x86_64.

View 2 Replies View Related

Fedora :: 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?

Oct 21, 2010

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.

View 3 Replies View Related

Programming :: Compiling A C++ Program Using G++ With X86 Settings On X86_64?

Jan 25, 2010

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 ?

View 6 Replies View Related

Fedora :: System Update Fails Error "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)"

Jan 10, 2010

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)"

View 12 Replies View Related

Fedora :: Fortran Programs And Long Path Names Input's

Apr 30, 2010

I have a fortran program example call like this:

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.

View 3 Replies View Related

Fedora :: Download Smb For I686?

Aug 17, 2010

Any body pls help me that how to download the smb (or) which websites are providing download the smb for fedora-13, i686.

View 2 Replies View Related

OpenSUSE :: 11.3 X86_64 Compile - Not Recognized Configure: Error: /bin/sh ./config.sub X86_64-unknown-linux- Failed

Aug 3, 2010

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.

View 5 Replies View Related

Fedora :: F12: Glibc-2.11-2.i686 Dependency?

Dec 3, 2009

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

View 3 Replies View Related

Fedora :: Can't Boot Laptop - F12 I686?

Jan 27, 2010

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.

[code]....

View 11 Replies View Related

Fedora :: Changing From I686-PAE To Generic?

May 2, 2010

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??

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved