Compilation error - IMPLICIT type

Discussion about building and installing Elmer
Post Reply
Matthew
Posts: 31
Joined: 19 Jun 2014, 18:22
Antispam: Yes

Compilation error - IMPLICIT type

Post by Matthew »

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
Attachments
implicit error.png
implicit error.png (51.78 KiB) Viewed 5141 times
kataja
Posts: 74
Joined: 09 May 2014, 16:06
Antispam: Yes

Re: Compilation error - IMPLICIT type

Post by kataja »

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
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Compilation error - IMPLICIT type

Post by mzenker »

Hi,

see also this post.

HTH,

Matthias
Matthew
Posts: 31
Joined: 19 Jun 2014, 18:22
Antispam: Yes

Re: Compilation error - IMPLICIT type

Post by Matthew »

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? :D

So, how to solve the problem?

Regards,
Jamil
kataja
Posts: 74
Joined: 09 May 2014, 16:06
Antispam: Yes

Re: Compilation error - IMPLICIT type

Post by kataja »

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
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Compilation error - IMPLICIT type

Post by mzenker »

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):

Code: Select all

elmerf90 myfunc.f90 -shared -o myfunc.dll
Matthias
Matthew
Posts: 31
Joined: 19 Jun 2014, 18:22
Antispam: Yes

Re: Compilation error - IMPLICIT type

Post by Matthew »

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
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Compilation error - IMPLICIT type

Post by mzenker »

Hi,
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
what I wrote refers to the Windows version.
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
If you don't get a mysolver.dll that way, you need to type

Code: Select all

elmerf90 mysolver.f90 -o mysolver.dll
HTH,

Matthias


HTH,

Matthias
Post Reply