I have just tested valgrind, a fantastic software! I found a very subtle bug almost directly. But a bit complicated to understand the output.
But I have still severe memory leaks and I have a question. If a declate a pointer to a record TYPE in a subroutine and pass that pointer to another...
Thanks, I will try these things. The problem is not really mine but from someone using my code. Normally I do not do millions of calculations, a few 1000 is enough to solve my problems but the problem seems independent of the type of data used.
I have seen a gradual increase in use of memory...
I have now a program for thermodynamic calculations that runs well for most calculations but when it is used in large scale simulations (millions of calculations of equilibria with many components) it sometimes crashes due to lack of memory, i.e. there are some memory leaks.
I know this is...
It works perfect with the gx structure as private variable in the parallel do. I noticed that I had to initiallize its values for each thread which is quite obvious (if one thinks a little). Thanks again.
Aha, thanks. gx is a record which just contains the error code. No problem to make the whole record private.
When I started developing the code (which is now some 30000 lines) I was new to Fortran08 (although not to Fortran77 and object oriented programming) so I put the error code inside a...
I started this tread with the intention to help others having strange error messages. I use the free GNU fortran as I am a retired professor developing a free thermodynamic software based on my 30 years of experience and without any economic support. If gfortran did not exist I would not be...
I use F90 for all my source code. Will the compiler really be sensitive to that?
But I will rethink the whole error handling concept now when I have most parts of the software working, And I have quite some code to clean up as I dod not know initially that one could copy a complete record.
Hi again
Things are progressing nicely with my software and I am very grateful for the quick answers I can get here saving a lot of time searching documentation. I managed to get parallel processing working but (maybe stupidly) I have the error code as part of a TYPE structure and I need to...
My new code is F90 and quite large, I wanted to add this F77 feature as I cannot figure out any other way to save/read results stored in the F90 typed records. I made some simple conversion of the F77 code (! instead of C etc) and compiled it with F90 and of course got error as it does not like...
Hi
I have a simple question, is there a way to prevent the F90 compiler to check if the actual and formal arguments to a subroutine are different?
Before telling me that it is criminal to pass the wrong kind of variable please read my reason for the question.
The reason for this question is...
There is no such library. When I look at the mingw installation tool it lists a number of POSIX threading libraries that all are marked as installed except the mingw32-libquserex.dll This is marked as experimental and useless for 64 bit
I have a 64 bit installation.
Hi
I use MigGW in Windows and want to test using OpenMP parallel processing in my Fortran program
and compile the code with -fopenmp but the linker returns with error
C./mingw/bin/.../lib/gcc/mingw32/4.8.1/../../../ ... cannot find -lpthread
Which MinGW package is missing?
There is no...
Hi
I wanted to use an old F77 subroutine package in my new Fotran code and I could compile it with minimal changes but when I tried to link it with the rest of the code I got a strange error from the linker
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: lmdif1lib.o: bad...
Programming during the 30 years before git existed I developed my own technique of version control but it is not as elegant as git and I have tried to use git, I setup a copy on gitbub but I get confused with the terms, For the time being I am the only programmer anyway and at each large change...
With some inspiration I reallized that I had an array of pointers (defined in the smart way of defining a type which is a pointer and then dimensioning this type as an array) and this pointed to some elements of the array which I tried to deallocate. I had not deallocated this array of pointers...
I guess that what I will eventually have to do. The code probably contains a lot of minor bugs as I can only test a small range of the possible conditions for its use. For the code I originally helped to develop we had more than 10 PhD students using and reporting errors as soon as we could...
Hi
I have programmed Fortran for almost 40 years, mainly in materials thermodynamics, and since a retired a few years ago I started to use the new Fortran standard with TYPE etc to write a free version a thermodynamcs software based on my previous experiences. This has now grown to become some...
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.