thliebig / openEMS

openEMS is a free and open-source electromagnetic field solver using the EC-FDTD method.
http://openEMS.de
GNU General Public License v3.0
453 stars 156 forks source link

openEMS.sh #73

Closed thomaslepoix closed 1 year ago

thomaslepoix commented 4 years ago

Hi Thorsten!

What is the point of the openEMS.sh script?

#!/bin/bash

#clear LD_LIBRARY_PATH
export LD_LIBRARY_PATH=

#get path to openEMS
openEMS_PATH=`dirname $0`

#execute openEMS
exec $openEMS_PATH/openEMS $@

Since it does nothing else than just running the openEMS binary, I think we should remove it and make invoke_openEMS.m call the openEMS binary instead. May is there still a reason that I can't see?

Best regards,

thliebig commented 3 years ago

I think Octave used to set wired LD_LIBRARY_PATH definitions making openEMS find the wrong binaries. That is the reason for this file. I'm not sure if this is still necessary but it might highly depend on the system and Octave version and such...