User Forum of Software BASEMENT

BASEMENT
Basic Simulation Environment for computation of environmental flow and natural hazard simulation
Laboratory of Hydraulics, Hydrology and Glaciology (VAW)
ETH Zurich
Basement_Logo

You are not logged in.

#1 2014-10-22 07:45:35

michelk
Advanced_User
Registered: 2014-09-17
Posts: 33

Basement for CentOS or Fedora Linux

I was just trying to run basement on rpm-based systems like CentOS or Fedora.
With the basement-cluster-executable I get the follwing error:

    error while loading shared libraries: liblapack.so.3gf: cannot open shared object file: No such file or directory

available would be

    /lib64/liblapack.a
    /lib64/liblapack.so.3
    /lib64/liblapack.so.3.2.1
    /lib64/liblapack.so
    /lib64/liblapack.so.3.2

Of course, it would be nice to have a 32bit and 64bit rpm-package.

Offline

#2 2014-10-30 14:38:34

Christian Volz
User
Registered: 2014-09-04
Posts: 31

Re: Basement for CentOS or Fedora Linux

Hi Michelk,

unfortunately I have no solution to your problem. I would have supposed that the lapack-libraries are so commonly used that they are found on all common linux systems. Your missing library seems to be a Fortran-library, perhaps you can install some corresponding packages?

We use Ubuntu and have no experience regarding CentOS and rpm package creation. If you cannot solve this problem and you need a running BASEMENT version on CentOS, we may compile you a special version, which does not depend upon the lapack libraries. However, no implicit computations are possible without the lapack libraries. Let us know if you need such a version.

Best regards,
Christian

Last edited by Christian Volz (2014-10-30 16:18:12)

Offline

#3 2014-11-05 08:22:42

michelk
Advanced_User
Registered: 2014-09-17
Posts: 33

Re: Basement for CentOS or Fedora Linux

Thanks Christian for the reply and the suggestion. If I couldn't workaround the
problem, we may need such a version in the near future for an online-model on a
CentOS-Server. Then I will let you know.

Best regards, Michel

Offline

#4 2014-12-15 14:55:53

michelk
Advanced_User
Registered: 2014-09-17
Posts: 33

Re: Basement for CentOS or Fedora Linux

With the Linux executable I also noticed an issue with relative filepaths:
Input-files in the bmc are searched relative to the directory of the bmc-file,
instead of the working-directory.

Say I have the following setup:

    $ ls
    input.txt run.bmc

and a section in the bmc-file with

    BOUNDARY {
        string_name = input
        type = hydrograph
        file = input.txt
        slope = 1
    }

Everything runs fine with

    $ basement -b -f run.bmc

But If I now do

    $ mkdir test
    $ mv input.txt test/
    $ cd test/
    $ basement -b -f ../run.bmc

I get an error with
   
    Could not find input-file '../input.txt'

Offline

#5 2014-12-17 10:53:17

Sam
Developer
From: VAW - ETH Zurich
Registered: 2014-09-04
Posts: 46
Website

Re: Basement for CentOS or Fedora Linux

this issue is actually not an issue, this behavior is on purpose: all files (input, mesh, log, etc) have to be in the same directory, i.e. in the directory of the .bmc-file.

this should prevent any confusions with different runs and different input and result files.

we hope you get along with this restriction...? cheers

Offline

#6 2014-12-17 11:56:59

michelk
Advanced_User
Registered: 2014-09-17
Posts: 33

Re: Basement for CentOS or Fedora Linux

> all files (input, mesh, log, etc) have to be in the same directory, i.e. in the directory
> of the .bmc-file.

The restriction is not enforced; you could happily have eg. the mesh
somewhere else and reference it with relative paths.

The matter is, relative to which directory. And here the windows and linux implementations differ.

On windows with cygwin this works

    $ wget http://www.basement.ethz.ch/services/te … H_BP_4.zip
    $ unzip H_BP_4.zip
    $ mv run.bmc ..
    $ basement -b -f ../run.bmc

If I do the same thing on linux I get an error:

    *******************************************************************************
    *!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Error !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*
    *******************************************************************************
    -> Cannot open the grid file '../H_BP_4.2dm'.
    Program is terminated...

Offline

#7 2014-12-18 15:07:00

Sam
Developer
From: VAW - ETH Zurich
Registered: 2014-09-04
Posts: 46
Website

Re: Basement for CentOS or Fedora Linux

we cannot reproduce the behavior you describe (v2.4, Linux and Windows), i.e. without having all files in the same directory BASEMENT returns an error ("-> Cannot open ...").
if you have a BASEMENT version and/or an operating system where this is not the case, you can count yourself a lucky guy ... wink

but, we are discussing to open this restriction, e.g. to have one level of sub-folders in the directory of the run.bmc file where you can organize the numerous input and result files.

Offline

#8 2016-11-30 08:57:45

michelk
Advanced_User
Registered: 2014-09-17
Posts: 33

Re: Basement for CentOS or Fedora Linux

Any update on the original issue? Are there any rpm-based binaries for e.g. CentOS?

Offline

#9 2017-02-28 08:46:02

michelk
Advanced_User
Registered: 2014-09-17
Posts: 33

Re: Basement for CentOS or Fedora Linux

I wanted the try the brand-new Docker feature on CentOS.

I did:

sudo docker build -t docker-basement .
sudo docker images
# =>
# REPOSITORY          TAG               IMAGE ID            CREATED             SIZE
# docker-basement     latest              d1e91a206c07      10 minutes ago     183.6 MB
# docker.io/ubuntu      16.04              0ef2e08ed3fa        12 hours ago        130 MB
sudo docker run docker-basement

I guess then I shoud enter a bash with basement in PATH. But nothings happens.

I

Offline

#10 2017-03-01 10:50:23

Sam
Developer
From: VAW - ETH Zurich
Registered: 2014-09-04
Posts: 46
Website

Re: Basement for CentOS or Fedora Linux

following the instructions in BASEMENT documentation should work out fine!

nevertheless, some remarks on your try:
- the default command in BASEMENT docker environment is 'bash', i.e. you have to keep STDIN open (-i flag in run command), otherwise bash is executed and exits immediately as in your case. the same applies when you run 'docker start'
- if you want to have access from inside the container to modeling data stored outside of the container, map volumes with -v flag

Offline

#11 2017-03-01 14:12:14

michelk
Advanced_User
Registered: 2014-09-17
Posts: 33

Re: Basement for CentOS or Fedora Linux

Thanks for the hint Sam.

Offline

Board footer

Powered by FluxBB