Hello all,
I have downloaded heat equation solver from https://github.com/tehnick/elmerfem/tre ... rc/modules, which stores all the source code for ELMER.
The problem is that when I tried to compile this in Windows command prompt, I got the following error shown in the attachment. I was confuse because I just compiled the source code given but still got error in it. What actually went wrong with this? Is there any way to correct this?
Regards,
Jamil
Compilation error - IMPLICIT type
Compilation error - IMPLICIT type
- Attachments
-
- implicit error.png (51.78 KiB) Viewed 5141 times
Re: Compilation error - IMPLICIT type
Hi Jamil,
The windows installer is compiled from https://github.com/ElmerCSC/elmerfem. It is the most official of the unofficial Elmer svn-forks :^)
You can, however, probably work around your way just by removing the declaration of symbols CPUTime and RealTime from your HeatSolve1.f90.
Cheers!
Juhani
The windows installer is compiled from https://github.com/ElmerCSC/elmerfem. It is the most official of the unofficial Elmer svn-forks :^)
You can, however, probably work around your way just by removing the declaration of symbols CPUTime and RealTime from your HeatSolve1.f90.
Cheers!
Juhani
Re: Compilation error - IMPLICIT type
Hi Juhaini and Matthias,
Sorry I don't quite understand what is the problem, and the post given by Matthias. Can any of explain in simpler english?
So, how to solve the problem?
Regards,
Jamil
Sorry I don't quite understand what is the problem, and the post given by Matthias. Can any of explain in simpler english?
So, how to solve the problem?
Regards,
Jamil
Re: Compilation error - IMPLICIT type
Hi Matthew,
to solve the problem download the heat equation solver from https://github.com/ElmerCSC/elmerfem/bl ... tSolve.src. Or you can just edit your HeatSolve1.f90 file and remove the symbols "CPUTime" and "RealTime" from line 176...
The url you mentioned mirrors the SVN development tree but the windows installer of elmer is compiled from https://github.com/ElmerCSC/elmerfem. These are not fully compatible.
-Juhani
to solve the problem download the heat equation solver from https://github.com/ElmerCSC/elmerfem/bl ... tSolve.src. Or you can just edit your HeatSolve1.f90 file and remove the symbols "CPUTime" and "RealTime" from line 176...
The url you mentioned mirrors the SVN development tree but the windows installer of elmer is compiled from https://github.com/ElmerCSC/elmerfem. These are not fully compatible.
-Juhani
Re: Compilation error - IMPLICIT type
Hi,
the post I referred to simply says that under Windoze, the elmerf90 compiler for myfunc.f90 has to be called as follows (at least on my system):
Matthias
the post I referred to simply says that under Windoze, the elmerf90 compiler for myfunc.f90 has to be called as follows (at least on my system):
Code: Select all
elmerf90 myfunc.f90 -shared -o myfunc.dll
Re: Compilation error - IMPLICIT type
Hi Juhaini,
Thank you for clarification. Anyway, what is the purpose of CPUTime and RealTime? If I remove it from my solver, will it affect the calculation at line 579 onwards, because at that line it requires CPUTime and RealTime?
Hi Matthias,
I am using window version of Elmer, so is it calling the function the same as:
C:\"file location"> elmerf90 "solver name".f90
Thanks again.
Jamil
Thank you for clarification. Anyway, what is the purpose of CPUTime and RealTime? If I remove it from my solver, will it affect the calculation at line 579 onwards, because at that line it requires CPUTime and RealTime?
Hi Matthias,
I am using window version of Elmer, so is it calling the function the same as:
C:\"file location"> elmerf90 "solver name".f90
Thanks again.
Jamil
Re: Compilation error - IMPLICIT type
Hi,
However, studying your screenshot closer seems to indicate that the "-shared" is included in the elmerf90 call now. this was not so at the time of the post I have referred to.
In that case, it may indeed be sufficient to just type
If you don't get a mysolver.dll that way, you need to type
HTH,
Matthias
HTH,
Matthias
what I wrote refers to the Windows version.Matthew wrote: I am using window version of Elmer, so is it calling the function the same as:
C:\"file location"> elmerf90 "solver name".f90
However, studying your screenshot closer seems to indicate that the "-shared" is included in the elmerf90 call now. this was not so at the time of the post I have referred to.
In that case, it may indeed be sufficient to just type
Code: Select all
elmerf90 mysolver.f90
Code: Select all
elmerf90 mysolver.f90 -o mysolver.dll
Matthias
HTH,
Matthias