General :: Compiling Fortran Code In SuSe 11.3

May 18, 2011

I can compile an old fortran program on my macbook using the Absoft fortran compiler and the command:f90 'W132 C SOURCECODE.flU77lV77

Unfortunately I cannot find f90 for linux. I can, however, find gfortran. However, gfortran does not recognize the flag -W132 and when I remove -W132 the compiler thinks all lines end after a certain number of characters. Does anyone know what flags call the equivalent type of compilation using gfortran? Is it possible I need to use f90? If so, is there a free version of f90 for linux?

View 8 Replies


ADVERTISEMENT

General :: Write A Script To Execute A Fortran Code That Reads In Parameters From Keyboard Typing?

Apr 18, 2011

I am trying to write a script (especially C-shell) to execute a fortran code that reads in parameters from keyboard typing. I will have to process this .F code for many times with the parameters the same for all my data files, therefore, I don't have to type in everytime I execute the .F code. But I don't know what is the command in c shell to read in a text files that contains all the parameters I want and can make the shell read in appropriately to feed the .F code.

View 3 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 :: Calling Fortran 95 Code In C?

Apr 15, 2009

I'm trying to call some Fortran 95 code in C, but I'm having problems with integers not having the same value in C as in Fortran, and changing values upon each run of the program. I think it has to do with the integer type, but I don't know how to fix it. I'm running Gentoo x86. Here are the files I've got:

foo.c:

Code:

#include <stdio.h>
extern int qux_();
main() {

[code]....

View 2 Replies View Related

Debian :: Compiling TAUCS For Squeeze Using Intel Studio C And Fortran Compilers

Feb 19, 2011

I want to build Taucs library [URL] , to use its sparse solver in some number crunching apps, [URL] Since i plan to build these apps with the intel development suite, i better build Taucs with the same set of compilers... but AFAIK Taucs doesnt exist in <testing> or <unstable> ( I could apt-get source, and set appropriate flags for compilers it it did ) and i do not quite understand its build system ..It is not a ./configure system...it relies on external libs like blas, lapack and metis... which regardless of existing in Debian repo are built with gcc-4.5... so.. no way of using this to link with an Intel built library...

View 10 Replies View Related

Ubuntu :: Changing Fortran Code To Python?

Aug 19, 2011

I have a big fortran code for FE analysis. I want to change the code to python. I am curious to know, whether I will get any advantage over speed, If not at least the speed should not be less than what fortran gives. Should I go for it.

View 2 Replies View Related

Programming :: Fortran Code On 32/64bit Machine

Jun 10, 2009

I'm not a Fortran coder but I need to call the sub-routine ADAPT.f from a c code.This subroutine calculates a multiple integral of a given function.My problem is that the c code works with no problem in a 32 bit machine but it does not in a 64 bit machine, and the problem seems to be related to adapt, which calculations gives a NA rather than the result of integration.Since fortran is quite obscure for me, I don't know why is this happening. Maybe I should change some data type (from real to double), but I'm not sure. Does anyone have a clue?

View 3 Replies View Related

Programming :: Fortran 90 Code - Makefile Insensitive To Change

Mar 10, 2011

I am dealing with one FORTRAN 90 code, have made small changes.

milenko@milenkons:~/mt4$ make mt4
make: 'mt4' is up to date.
milenko@milenkons:~/mt4$ ifort -c MT2DDIB1.FOR
milenko@milenkons:~/mt4$ make mt4
make: 'mt4' is up to date.
milenko@milenkons:~/mt4$ make mt4
make: 'mt4' is up to date.
milenko@milenkons:~/mt4$ make mt4
make: 'mt4' is up to date.

I go for make command but it does not see that the source code has been modified.Than I do compilation from command line,try make again but no use.
F95=ifort
FFLAFGS= -O1

mt3: driver_mt2ddi.o constants.o settings.o params.o mt2dmod.o fdsystem.o mt2ddat.o mt2dsens.o
$(F95) -o $(FFLAGS) mt3 constants.o settings.o params.o mt2dmod.o fdsystem.o mt2ddat.o mt2dsens.o driver_mt2ddi.o
driver_mt2ddi.o: driver_mt2ddi.for constants.o settings.o params.o mt2dmod.o fdsystem.o mt2ddat.o mt2dsens.o
$(F95) -c $(FFLAGS) driver_mt2ddi.for

View 2 Replies View Related

Programming :: Fortran OpenMPI-1.4.1 Installation / Compiling - Error Message Saying Mpif Not Recognized Command

Feb 4, 2010

I've installed openMPI-1.4.1 on my laptop and I'm trying to compile some fortran code I've written using MPI. I downloaded the openMPI-1.4.1 file from the openMPI website and used the shell script they provide to install it. This is the shell script:

shell$ cd openmpi-1.4.1
shell$ ./configure --prefix=/usr/local
shell$ make all install

There was an additional line extracting the tar file, but I did this by hand. The first time I ran this script there was an error on the final stage saying that a directory couldn't be created because of lack of permission. I decided to run the script again this time as a sudo.

Having run the script again everything appeared to install properly, however when I went to compile some fairly simple code I got a message saying that the compiler couldn't find MPI. I was using this command: gfortran messages.f90 -o messages I looked on the openMPI website where it recommends compiling with a compiler called mpif. However when I type mpif messages.f90 -o messages I get an error message saying mpif isn't a recognized command......

View 2 Replies View Related

Ubuntu :: Fortran Syntax Highlighting And Code Folding Editor Wanted?

Jul 27, 2011

I am looking for a text editor that does 1) syntax highlighting2) code folding3) it would be a bonus if I could set which macros were defined and it would show me the source I have tried geany, and codeblocks. Both incorrectly code fold around preprocessor #ifdef and #endif. The gedit plugin doesn't seem to work at all

View 7 Replies View Related

Software :: Reading And Writing SAC (Seismic Analysis Code) Data Files In Fortran Codes

Dec 2, 2008

I synthesized a seismogram by using Fortran codes, I need plot the synthesized seismogram and the data together, so I can verify the accuracy of code. Now I encounter a question: how to read the SAC data by Fortran code, I have searched some codes on Internet, the details as follow:the velr12a.sac is my data file.

Code:
c read sac file
PROGRAM RSAC
PARAMETER (MAX=1000)
DIMENSION YARRAY(MAX)
CHARACTER*10 KNAME

[Code]....

View 2 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

OpenSUSE :: Compiling A Code On 32-bit 11.1?

Dec 27, 2010

I tried to compiling a code on 32-bit OpenSuSe 11.1, but it was terminated with following error: # ***No rule to make target '/usr/lib/libGLU.a', needed by 'DXA_debug'. Stop Then I installed the freeglut-2.6.0, but there were only libGLU.so and libGLU.so.1 in /usr/lib folder. And the compiling process was terminated with the same error. Will you give me some instruction to solve this problem?

View 3 Replies View Related

Ubuntu Installation :: Code: Blocks Not Compiling

Jan 25, 2010

so I just installed code blocks after clear installing ubuntu 64 everything went fine but when I try to compile and run my .cpp files code::blocks wont do anything I dont get any messages on the build log so I dont understand whats happening I tried looking on the forums and checking other pages such as the one bellow but no luck at all. [URL]

View 1 Replies View Related

Fedora :: Compiling Code - Failing Sanity Check

Dec 7, 2009

Keep receiving the following error message when i try to compile any code:
Code:
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
logs test out some code with the C preprocessor and fail, thereby failing the "sanity check" I reinstalled cpp, but to no avail.

View 1 Replies View Related

Programming :: Error Messages Generated When Compiling C++ Code?

Jul 3, 2010

Is there an online resource to lookup error messages generated when compiling C++ code?

View 5 Replies View Related

Software :: Compiling Code - Linking To Libraries Using Different Versions Of C++ Runtime?

May 19, 2011

Basically, I'm trying to compile program A, which depends on LibA and LibB. LibA would not build with my version of G++ 4.4.3 due to a bug, so I've compiled the latest G++ 4.5 (installed in /opt directory) and built that library successfully (also installed in /opt).

I have LibB on my system already, but it was built with the 4.4.3 version. When compiling my final program, am I going to have issues because the .so files were built with different versions of gcc/g++? Or should I just rebuild a special version of LibB with the later version of the compiler just for that program? I can proceed and just see what happens, but I'm a little confused about how things work in a situation like this.

View 2 Replies View Related

Software :: Compiling Evince From Source Code - Make Errors

Mar 20, 2011

When I compile evince from its source code, I am able to run ./configure properly, but when I run make the following output is displayed.

Code:
make all-recursive
make[1]: Entering directory `/media/New_Volume/untitled folder/evince-2.32.0'
Making all in cut-n-paste
make[2]: Entering directory `/media/New_Volume/untitled folder/evince-2.32.0/cut-n-paste'
Making all in zoom-control
make[3]: Entering directory `/media/New_Volume/untitled folder/evince-2.32.0/cut-n-paste/zoom-control' .....
make[3]: *** [libevview.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I am not able to ascertain the source of this error, even though I seem to have the file in question-libevdocument.la. What do I do now to remove this error?

View 8 Replies View Related

Programming :: Valac: Compiling Into C Code: Expected Semicolon In The Wrong Place

Oct 20, 2010

Here is my problem: I have a Vala program that includes classes with nested classes. When I try to initialize classes (using the variable type and the variable, followed by the class's arguments [three unsigned 8-bit integers] in parentheses) and try to compile the Vala code to C code what I tried to AVOID doing, as I really wanted to create a shared object file, but now I know I have to use C code as a middleman, the compiler tells me it expects a semicolon between the class variable name and its members.

What?! A semicolon in a bad place, that's for sure! Why would I want to put a semicolon *BETWEEN* the class initialization and its members? Isn't the whole point of a class to *HAVE* different members? Here is my class:

Code:
public class Gtk.rgba : GLib.Object {
public class fg_color : GLib.Object {
private uint8 red;
private uint8 green;
private uint8 blue;
//Constructor
public fg_color(uint8 r, uint8 g, uint8 b) {
[Code].....

View 14 Replies View Related

Ubuntu :: Fatal Error: Iostream.h: No Such File Or Directory Compilation Terminated While Compiling C++ Code

Dec 9, 2010

whenever i am trying to compile a c++ program i am getting the following error sample.cpp:1: fatal error: iostream.h: No such file or directory compilation terminated

View 1 Replies View Related

SUSE :: Error In Compiling Kernel After Fresh Installation

Oct 21, 2010

I am trying to perform a patch on the current kernel version that was included in SLES SP1 and do a compile of the kernel. However, after installing the new kernel and rebooting, I got a "Waiting for device" error. I tried just compiling the kernel after a fresh installation of SLES SP1 on a physical and virtual machine and got the same problem. When I was doing make rpm, I got errors something like (can't remember but it was something like not in gzip format, file format not recognized and exec format error). Also, what I noticed when performing mkinitrd was that there were errors like the following:

ERROR: modinfo :could not open /var/tmp/kernel-2.6.32.120.7paemod-root/lib/modules/2.6.32.12-0.7-pae-mod/kernel/drivers/char/agp/ali-agp.ko: No such file or directory

The files include others such as amd-k7-agp.ko, ati-agp.ko, efficeon-agp.ko and others. There are also 2 files in the usb direcotry that has this problem. This happened even after a fresh installation. What I did was the following:

cd /usr/src/linux
make cloneconfig
make menuconfig
make rpm
mkinitrd
vim /boot/grub/menu.lst

View 2 Replies View Related

OpenSUSE Multimedia :: Compiling GTK+ 1.2 On Suse 11.3 X64 In Order To Install Xmms 1?

Jul 17, 2010

I Currently have the problem of not being able to install xmms on suse 11.3, apparently since there's no way to install it from the packman repos because xmms claims it's missing glib 1.22 -oh yeah that one. But since it worked like a charm on 11.2 i'm just wondering if the glib, gtk, and gdk rpms will be present in the future or have i just missed something. I've tried to compile gtk 1.2 and above on 11.3 but since it is a 64bit system it do not comply with my request.Output from glib-1.2.2 and 1.2.10

Code:
checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
checking build system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
and what's missing for xmms

[Code]...

If anyone could give me a tip on how to compile the old 32bit gtk libs on a brand new 64bit system would be much appreciated. Or if there is an even simpler way please tell i.e if there is any repos hosting what i need. Greets

View 3 Replies View Related

SUSE :: Kstartupconfig4 Error Code 3 And KDE4 Does Not Start?

Sep 10, 2010

I cannot run my new install with kde. I'm on dual boot winxp system with /home on a shared "data" ntfs partition.

View 4 Replies View Related

Ubuntu :: Compiling Source Code Error "You Need Intltool 0.40.0 Or Later"?

Jun 5, 2011

Just switched over to Ubuntu 11.04 32bit. I have spent the day configuring it to my likings, and am content with Ubuntu. I have zero experience with coding, and bare minimum knowledge. Anyways, I have gotten some tar.gz files, that I have extracted them into folders, and then in terminal I run ./configure, and then I get the error "You need intltool 0.40.0 or later".

View 2 Replies View Related

OpenSUSE :: Compiling Java Code Error "undefined Reference To Main"

Aug 9, 2011

After messing up with grub, I reformatted my hdd and installed opensuse 11.4 (gnome+kde) from the dvd and also included the java sdk while installing, now the problem is that whenever i compile a java program, I get this error Code: /usr/src/packages/BUILD/glibc-2.11.3/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'

View 3 Replies View Related

General :: Open *.vtk File In Fortran?

Jun 22, 2011

Can we open *vtk files in fortran?If yes,How?I have written my code as below:I keep getting error: bad real number in item 1 of list input

program work_file
implicit none
integer:: open_status,ln

[code]...

View 3 Replies View Related

General :: Fortran Project In KDevelop On Opensuse 11.3?

Aug 27, 2010

I just installed OpenSUSE 11.3 and I want to use Kdevelop 4.0 for programming in fortran. when I try to start a new project (Project/New from template) I only get the choice between C++ and PHP. What can I do so that I can also use fortran.

View 1 Replies View Related

General :: Build A Fortran Project In Kdevelop?

Apr 20, 2011

I have installed gfortran,cmake,etc,but there is no fortran project to chose.What should I do ?

View 2 Replies View Related

General :: Cross-Compile Fortran And C To Windows Application

Apr 22, 2010

I have Slackware 13-64 bit and I would like to cross-compile some Fortran and C programs to windows 32 and 64 bit applications. The Linux versions utilize X11 for the graphical users interface. I have tried MINWG but I could not get it to work, either in pre-built binary or source code form. Is there a binary version that works on Slackware 13? Alternatively, is there another method available?

View 1 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







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