Cannot run Elmer "elmag" example

Numerical methods and mathematical models of Elmer
Post Reply
giesbrecht
Posts: 5
Joined: 24 Apr 2023, 19:53
Antispam: Yes

Cannot run Elmer "elmag" example

Post by giesbrecht »

System: Windows 11
ElmerSolver version: v 9.0

I'm attempting to run the Elmer example found here: https://github.com/ElmerCSC/elmer-elmag ... passFilter

When I run ElmerSolver.exe in the BandpassFilter directory of the repo, I get the following:

Code: Select all

PS D:\repos\elmer-elmag\BandpassFilter> ElmerSolver.exe .\Filter_Zhai.sif
ELMER SOLVER (v 9.0) STARTED AT: 2024/03/15 15:48:19
ParCommInit:  Initialize #PEs:            1
MAIN:
MAIN: =============================================================
MAIN: ElmerSolver finite element software, Welcome!
MAIN: This program is free software licensed under (L)GPL
MAIN: Copyright 1st April 1995 - , CSC - IT Center for Science Ltd.
MAIN: Webpage http://www.csc.fi/elmer, Email elmeradm@csc.fi
MAIN: Version: 9.0 (Rev: Release, Compiled: 2023-03-05)
MAIN:  Running one task without MPI parallelization.
MAIN:  Running with just one thread per task.
MAIN:  Lua interpreter linked in.
MAIN:  External optimization routines linked in.
MAIN: =============================================================
MAIN:
MAIN:
MAIN: -------------------------------------
MAIN: Reading Model: .\Filter_Zhai.sif
 Caught LUA error:...0-Release/share/elmersolver/lua-scripts/defaults.lua:58: r
LoadInputFile: Scanning input file: .\Filter_Zhai.sif
LoadInputFile: Scanning only size info
LoadInputFile: First time visiting
LoadInputFile: Reading base load of sif file
LoadInputFile: Loading input file: .\Filter_Zhai.sif
LoadInputFile: Reading base load of sif file
Loading user function library: [EMParam_WR28]...[omega]
Can not find EMParam_WR28.
Can not find EMParam_WR28.dll.
Can not find .\EMParam_WR28.
Can not find .\EMParam_WR28.dll.
Can not find C:\Program Files\Elmer 9.0-Release/share/elmersolver/lib\EMParam_WR28.
Can not find C:\Program Files\Elmer 9.0-Release/share/elmersolver/lib\EMParam_WR28.dll.
I've opened an issue on GitHub - not sure which gets more traffic between this forum and the GitHub repo. Any help would be greatly appreciated.

Cheers,
Daniel
giesbrecht
Posts: 5
Joined: 24 Apr 2023, 19:53
Antispam: Yes

Re: Cannot run Elmer "elmag" example

Post by giesbrecht »

I tested this with an Ubuntu 24 VM and got the same error message.
kevinarden
Posts: 2315
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Cannot run Elmer "elmag" example

Post by kevinarden »

EMParam is a user function is has to be compiled to exist, Elmer has its own compiler in order to link into the Elmer librariesOn windows
it is made with

elmerf90 EMParam_WR28.F90 -o EMParam_WR28.dll

On linux dll are not used it can be an so or no suffix is needed

elmerf90 EMParam_WR28.F90 -o EMParam_WR28.so
giesbrecht
Posts: 5
Joined: 24 Apr 2023, 19:53
Antispam: Yes

Re: Cannot run Elmer "elmag" example

Post by giesbrecht »

Kevin, thanks very much! It would have taken me a long time to figure this out on my own.
Post Reply