Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

OMEdit

OMEdit

What is the correct line for the environment variable to the Standard Modelica Library (STL), so that OMEdit will automatically import the models library.
I downloaded version 3.1 of STL from the Modelica Web site. After unzipping i got a directory 3.1-build-6.

So it is something like: MODELICAPTH=/Users/dbarends/??????????

Could you give me some hints:-)

kind regards
Dick Barends

Re: OMEdit

In OpenModelica, the environment variable is called OPENMODELICALIBRARY (). Do note however that the official library contains some errors that the OpenModelica-provided version does not have (which is also 3.1 build 6).

This is what the structure looks like on Linux (OPENMODELICALIBRARY=OPENMODELICAHOME/lib/omlibrary=/usr/lib/omlibrary)

Code:


$ ls /usr/lib/omlibrary/
Modelica 3.1  ModelicaReference 3.1  ModelicaServices 1.0

According to the Modelica specification, the directory name should be LibraryName<space><version>. OMEdit will load the preferred version (release versions before prereleases, etc), with no way of changing this behaviour (yet).

There are 0 guests and 0 other users also viewing this topic