Typically, one imports the FeResPost Classes and Modules with the two following statements:
Note however that it works only if the different environment variables have been initialized correctly. Typically, in our Windows examples, this is done through the batch files (on Windows computers) or bash files (on UNIX and LINUX computers) that are used to launch the example scripts, and the following variables are generally initialized:
On Windows machines, the examples are defined in such a way that the environment is defined in file “RUBY/ENV/env.bat” included in the script used to launch ruby program. In the example above, not that the “PATH” environment variable refers to tree directories:
For example, the example “EX03/makeGravForces.rb” is launched in “RUBY/EX06” directory with command:
in which “exec” refers to the “exec.bat” file with following content:
Of course the different paths you will initialize in “ENV/env.bat” will have to be adapted to you peculiar installation, and to the version of Ruby you are using.
On unix, the BASH file looks as follows:
in which“../ENV/env.bash” content looks like: