Elmer windows installer

Discussion about building and installing Elmer
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Elmer windows installer

Post by mzenker »

Hi Peter,

no special effort needed - after a (way too) long simulation pause, I am finally starting again! :)
So I need to update everything anyway...

Matthias
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Elmer windows installer

Post by mzenker »

Hi again,

is the elmerf90 in the new Windoze installer known to work at all? I have tried to compile one of my old custom solvers and got tons of errors. Then I have tried with solvers contained in the actual source (HeatSolve, StatCurrentSolve, ...). None of them compiled without errors. So there is a problem. Has anything changed with the elmerf90 compiler recently?

Matthias
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Elmer windows installer

Post by mzenker »

Hi Peter,

could you tell me shortly if the "elmerf90 not working with the new Windows installer" is known, and when someone will take a look at it? I need my udf and solver in order to continue. So I would like to know if I can wait for a solution with the new installer, or if you are too busy with other work at the moment and I should return to the old installer where elmerf90 works (at least I think so).

Thanks,

Matthias
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Elmer windows installer

Post by mzenker »

Hi,

I have now reinstalled the old binary distribution (http://www.nic.funet.fi/pub/sci/physics ... -11-18.exe). This throws me some 400 revisions back in time, but at least provides me with a working elmerf90.

So for everyone who works under Windows: If you need to compile user defined functions and solvers with the built-in elmerf90 compiler, the new 64bit binary distribution is not for you. If you don't need elmerf90, you can happily use and test the new binaries.

I am sure the Elmer team will notify us when the elmerf90 problem is fixed.

Matthias
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Elmer windows installer

Post by raback »

Hi All,

There are new Windows installers ready for testing. The elmerf90 question has been adressed. Downloads available in:

http://www.nic.funet.fi/pub/sci/physics ... in/windows

-Peter
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Elmer windows installer

Post by mzenker »

Hi,
raback wrote:The elmerf90 question has been adressed.
it hasn't, at least not for me.

Compilation of the following code

Code: Select all

FUNCTION Test( Model, n, x ) RESULT(Res)
	USE DefUtils
	USE Lists
	IMPLICIT None
   
	TYPE(Model_t) :: Model
	INTEGER :: n
	REAL(KIND=dp) :: x, Res
   
	TYPE(ValueList_t), POINTER :: VList

	
	LOGICAl :: GotIt
   
	VList => GetBodyForce(CurrentModel % CurrentElement, GotIt)
	IF ( .NOT. GotIt ) THEN
		CALL FATAL('Test','No Body Force found')
	END IF
		
	Res = GetConstReal(VList, 'Test Parameter', GotIt)	
   
END FUNCTION Test
still gives me a "undefined reference to WinMain" error, as before.

Matthias
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Elmer windows installer

Post by mzenker »

Hi,

following a hint of Juhani, I have learned that

Code: Select all

elmerf90 myfunc.f90 -shared -o myfunc.dll
works for the compilation of myfunc. Contrarily to the old elmerf90, both options are needed.

Matthias
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Elmer windows installer

Post by mzenker »

Hi,

I have seen that the new Windoze installer does not contain the tests directory. I suppose that it will be added again for the next release... ;)

Matthias
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Elmer windows installer

Post by raback »

Hi Matthias

The tests directory is rather large so it might make sense to have it distributed only as a separate tar ball. Would that be sufficient from your point of view?

-Peter
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Elmer windows installer

Post by mzenker »

Hi Peter,

as long as it is made available in a way that users can find it (e.g. a link on the documentation page), I see no problem.
BTW I have just seen that the CSC website has changed, and at least some of the old links (e.g. https://www.csc.fi/english/pages/elmer/documentation) don't work any more.

Matthias
Post Reply