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. Bosse7

    Memory leaks

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

    Memory leaks

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

    Memory leaks

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

    TYPE variables in parallel constructs

    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.
  5. Bosse7

    TYPE variables in parallel constructs

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

    Strange linking error in gfortran

    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...
  7. Bosse7

    TYPE variables in parallel constructs

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

    TYPE variables in parallel constructs

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

    passing bit patterns

    Thanks a lot, I assumed there must be some simple way inside F08/F90 and I am grateful not to have to browse 300 pages of documentation to find it.
  10. Bosse7

    passing bit patterns

    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...
  11. Bosse7

    passing bit patterns

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

    linking GNU fortran with OpenMP

    OK, I removed and installed again the POSIX packages and now it works. Thanks
  13. Bosse7

    linking GNU fortran with OpenMP

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

    linking GNU fortran with OpenMP

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

    Strange linking error in gfortran

    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...
  16. Bosse7

    segmentation fault in a complex software

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

    segmentation fault in a complex software

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

    segmentation fault in a complex software

    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...
  19. Bosse7

    segmentation fault in a complex software

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

Part and Inventory Search

Back
Top