I am trying to compile Elmer for Windows XP, using mingw 64bit (not the usual mingw32 -- the 32bit version). Everything was going great until compiling libelmersolver.dll (in fem/src). The problem was that the linker could not recognize the object file _muldc3.o (which is a copy of _muldc3.oo, which is in svn, and not generated during the compilation). Does anyone know what is this object file? It seems to have been generated with gcc2, probably a long time ago. I think the issue is that it is a 32bit object file. I found some references in there to user Coudert.
Since I could not find anything in web searches, I've modified the Makefile manually to avoid linking to that file. Strangely enough, the compilation finished without any problems, so it seems that that file is not needed. However, when trying to run the newly compiled binary, it failed complaining about the model input:
Code: Select all
MAIN: Reading Model ...
ERROR:: Model Input:
ERROR:: Model Input: Unknown specifier: [40]
At line 1486 of file ModelDescription.f90
Fortran runtime error: End of record
That's happening around this (second line):
Code: Select all
Simulation
Max Output Leverl = 40
Coordinate System = Cartesian
Coordinate Mapping(3) = 1 2 3
Simulation Type = Steady State
Steady State Max Iterations = 1
Output Intervals = 1
Timestepping Method = BDF
BDF Order = 1
Solver Input File = demo.sif
End
However, using the old, 32bit Elmer, the simulation is going through. So, this error could be (a) either due to that missed linking to _muldc3.o or (b) some problem with data sizes in the 64bit version. I know that mingw64 is not a supported platform, but maybe someone has experience with building and running Elmer for 64bit Windows. Any advice is appreciated.