Hi,
Sorry for reacting so late, I was on a trip. Thanks for the example code, I am using gfortran, no idea if F2003 is included in there.
Your code may look simple, but for someone who never programmed with pointers it's a big step. Anyway your solution is more complicated than I hoped.
I'll...
Hi,
In this forum I once saw a way to pass a function as an argument to another function or subroutine:
http://www.tek-tips.com/viewthread.cfm?qid=1572869
Would it be possible to pass a function as an argument wherein the amount of functions that you pass as an argument is variable?
Thanks...
Hi,
IT'S SOLVED
I didn't try the extremely slow exe, generated by the other (Microsoft's) compiler yet, BUT I tried a newer version of gfortran, a very recent one from march 2013 and now.... ..it works!!
So it was the compiler indeed!
I took the original code, as posted here and the...
I have to try the other compiler again (which is the old 90's version of Microsoft'de Developers Studio). I didn't notice that it was giving other names to my exe, it's running now and it seems to be running more than 10000 times slower than the exe that was generated by gfortran (not joking)...
Just some quick feedback in the little time I have.
I tried another compiler, unfortunately with the same result (I also tried to change the windows pagefile settings, but that's superfluous to mention here, that didn't work).
I will let you know about the rest
@gummibärchen
You're right, I focused too much on the output file, you mentioned the input file as the cause indeed. So let's focus on the READ from the input file.
About your tips:
Your first 3 and the 5th tip didn't make any difference unfortunately. About the 4th one, the pointer one, I...
I used JuJuEdit, but it won't open files that are larger than 2Gb. Anyway, I don't think an editor is the tool to do computations and add values etc., but I'll have a look at the ones you mention, they may be better than JuJu, thanks for pointing those out.
On the other hand, shouldn't fortran...
Back again,
Yep, the 100 characters in the 4 strings is highly exaggerating, I think about 100 will do, but who cares? That shouldn't influence the ability to write more than 2Gb, should it, if it would, I would never end up with EXACTLTY 2Gb, but some strange number instead.
It's true that my...
@salgerman: I didn't know about "sed". I'll have a look
@gummibaer: You can find my code hereunder.
PROGRAM MultipleFileReplacer
IMPLICIT NONE
INTEGER, PARAMETER :: mxll=1000
INTEGER :: amountoffiles,ifi,i1,i2,amountofwords,iw,sumclosed
INTEGER, DIMENSION(:), ALLOCATABLE :: iur,iuw,isclosed...
Hi,
Under Windows XP I made a little program to change words in huge text files (in fact three files of 1Gb, 1.8Gb and 7Gb) as normal text editors refuse to open these huge text files.
To do so, without an editor, I
- 1 - Open the input textfile
- 2 - Read one line only (so the program uses...
But Tiff is a 2D format, isn't it? That's just a bunch of pixels and a colour for each pixel, I even think it's the same as bmp, the only thing that differs is the extra info about dpi.
I used this at the time:
http://en.wikipedia.org/wiki/BMP_file_format
And have been writing fractal pictures...
Depends on what you mean by image processing, 3D or just 2D?
I once read a bitmap (binary file, the specs of bitmaps can be found on the net) and did some things (filters) on the colours and then saved it as bitmap again.
I don't have that code right here, neither am I sure whether I'm allowed...
Hm, that's a good point, sorry I didn't get that. To check that I'd have to uninstall the older version again and reinstall the new one (I'm a bit short in time for doing that right away, but may come back to that), however a simple program without modules (something like "hello world" or...
I dump the *.mod files in the local directory "./INCLUDES"
This directory exists and it works with the older gfortran version.
What does the directory "C:\Program Files (x86)\gfortran\include" have to do with where I decide to dump my *.mod files?
Strange, maybe it has something to do with my compiler options:
gfortran -c -Wall -O3 ./MODULES/mod_01_module01.f90 -J./INCLUDES/ -I./INCLUDES/ -o ./OBJECTFILES/mod_01_module01.o
Both directories exist and in the old gfortran version this works perfectly
Hi,
I installed: http://users.humboldt.edu/finneyb/gfortran-windows-20121210.exe Link (gcc-4.8.0)
Thinking that I was updating my compiler, however compiling I get the error:
Warning: Nonexistent include directory
Uninstalling it and reinstalling my old "gfortran-windows.exe" Version 3, 29...
To answer to my own question, I added:
-static-libgfortran -static-libgcc -static-libstdc++
when building, of which I guess "-static-libgcc" did the trick. No idea what the other static linking options do.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.