Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. GerritGroot

    Passing a variable amount of functions as an argument

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

    Passing a variable amount of functions as an argument

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

    Max file size of 2Gb for gfortran under win XP

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

    Max file size of 2Gb for gfortran under win XP

    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)...
  5. GerritGroot

    Max file size of 2Gb for gfortran under win XP

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

    Max file size of 2Gb for gfortran under win XP

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

    Max file size of 2Gb for gfortran under win XP

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

    Max file size of 2Gb for gfortran under win XP

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

    Max file size of 2Gb for gfortran under win XP

    @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...
  10. GerritGroot

    Max file size of 2Gb for gfortran under win XP

    I flush everything I write, but I'll post it anyway, maybe you see more wrong stuff in it.
  11. GerritGroot

    Max file size of 2Gb for gfortran under win XP

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

    image processing libraries for Fortran 2003

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

    image processing libraries for Fortran 2003

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

    Latest gfortran installer for windows doesn't work

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

    Latest gfortran installer for windows doesn't work

    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?
  16. GerritGroot

    Latest gfortran installer for windows doesn't work

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

    Latest gfortran installer for windows doesn't work

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

    Fortran has this type of "If"?

    http://www.tek-tips.com/viewthread.cfm?qid=1692031
  19. GerritGroot

    gfortran didn't create a stand-alone exe

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

    Recursive in Fortran 77

    Well, the error doesn't seem to be caused by this loop. I would isolate it and test it in a separate code.

Part and Inventory Search

Back
Top