Hello,
I have a bash script that runs a simulation program written in Fortran 90, and all output is redirected to a file. If the program finishes without problems, I set a success parameter. The code looks something like this:
#!/bin/bash
...
echo -n "Running program..."
./sim_program >...
I have a .net project with both C and Fortran sources and I want to produce one static lib. I'm using VS 2008 and Intel VF 10.1. They have to be two separate projects in visual studio so each one makes a separate static lib. How do I combine them into one resulting static lib?
EDIT
You guys are too slow. Here's what I figured out.
Set a...
Is there an analog of the "-fdefault-real-8" gfortran (the GNU Fortran 95 compiler) option in g77 (the GNU Fortran 77 compiler)? This option sets the default real type to an 8-byte wide type.
I currently have code where single-precision arithmetic is limiting my accuracy, and so I need double-precision. (It's not just intermediate val...
Are there any recommendations for a Fortran XML library? I found a few, but I do not know how well they are supported.
...
Is there a way to define code snippets for another language, other then the default ones (C#, VB ...) in VS 2008 ?
I'm using Intel's fortran compiler with Visual studio, and its integration in it is pretty complete apart from the code snippets part. I thought I read somewhere on msdn that you can't define new ones, for other languages.
...
I'm looking for a make platform. I've read a little about gnu make, and that its got some issues on windows platforms (from slash/backslash, to shell determination ... ) so I would like to hear what are my alternatives to it ?
If it matters, i'm doing fortran development combined with (very)little c on small sized projects (50k lines ma...
This may sound like a newbie question - and it is. I'm relatively new to vs, we started using it a few months ago, and I still haven't "mentally" made the change from the command line. So, if you could help me with 2 things:
I create a new project (not a solution). He puts the files in some directory. After putting my code inside it, I...
I have an x64 project in VS2008 that needs to include an old legacy library written in Fortran years ago. I do not have the source and cannot recompile it. The function names in the .lib are prepended with an underscore, but the x64 projects only use fastcall reference which does not want to recognize stdcall or cdecl references. Is ther...
yes, I need to do the following on visual fortran... any good resources ?
...
I have some parallel Fortran90 code in which each thread needs to generate the same sequence of random numbers.
I have a random number generator that seems to be thread-unsafe, since, for a given seed, I'm completely unable to repeat the same results each time I run the program.
I surfed unsuccessfully (almost) the entire web looking...
Hello,
I am trying to read a formatted 2D array from a file on disk into a variable. I have the write operation, which is rather simple, but am stuck on reading the same file. Could someone point me to a sample/writeup on how to do this? The net seems saturated, but i can't find a useful article.
Btw, the reason for the formatted f...
Could anyone explain me (in plain English) how to link the Vector Statistical Library (included in the Math Kernel Library) to a Fortran 90 source code compiling with Intel Fortran compiler for Linux?
My makefile looks as follows:
f90comp = ifort
libdir = /home/project/
mklpath = /opt/intel/mkl/10.0.5.025/lib/32/
mklinclude = /opt/int...
A friend & I were debating how Inf's and NaN's are stored during lunch today.
Take Fortran 90 for example. 4-byte reals can obtain the value of Inf or NaN. How is this stored internally? Presumably, a 4-byte real is a number represented internally by a 32 digit binary number. Are Inf's and NaN's stored as 33 bit binary numbers?
...
Hello,
I would like to write to the standard output in fortran without adding a line break. That is, I want to do something like this:
a='some string and '
b='some other string'
write(*,101) a
...
write(*,102) b
...
101 format(a,...)
102 format(a)
Is it possible to use some kind of format statement to supress the line break in 101, s...
Greetings Everyone,
Trying to compile using g++ and need to link the standard f90 (or f77 even) libraries for some fortran source codes in my Makefile. I cant find the name of it anywhere.
Makerfile:
products: SlowDynamic.exe
SlowDynamic.exe: main.o SA.o mersenne.o CFE.o BCs.o EMatrix.o Numbering.o KMatrix.o Solve.o MA_57.o blas.o MA...
I've just parallelized a fortran routine that simulates individuals behavior and I've had some problems when generating random numbers with Vector Statistical Library (a library from the Math Kernel Library). The structure of the program is the following:
program example
...
!$omp parallel do num_threads(proc) default(none) private(...)...
I have a compressed file.
Let's ignore the tar command because I'm not sure it is compressed with that.
All I know is that it is compressed in fortran77 and that is what I should use to decompress it.
How can I do it?
Is decompression a one way road or do I need a certain header file that will lead (direct) the decompression?
It's not a...
Hi everyone. I've been working on my project about bank account transactions (withdraw, deposit, check cashed, and balance inquiry) using "account.txt".
My TA said that I have to use temporary file. This temporary file will read line by line to find what the user is looking for. However, I did not understand this temporary OPEN file at a...
Hi everyone.
I'm trying to figure out these error messages:
Traceback: not available, compile with -ftrace=frame or -ftrace=full
Fortran runtime error: Missing RECL parameter in OPEN statement
but I have no ideas what these messages means....
First of all, what is "-ftrace=frame or -ftrace=full" mean?
Also, what is "RECL parameter" ?
...
I'm taking Fortran 90 class, and I'm looking for any good websites about Fortran.
Does anyone know any?
...