Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

bcvtb in Linux - socket error

asked 2015-10-17 06:48:18 -0600

G's avatar

updated 2015-11-12 15:44:55 -0600

Hi All, We have been trying to get bcvtb work in Linux, mostly to use it with ESP-r but we can not actually make it work with any of the externally coupled programs (Ptolemy functions fine). We are getting a socket error while the program is trying to establish the socket and probably trying to read the socket.cfg file. After a long debugging effort I think there may be something going on with the establishclientsocket function. I printed out the socketFD variable from ESP-r, which if my understanding is correct takes values as (from bcvtb.F90 file): socketFD = establishclientsocket(“socket.cfg”). I realised that bcvtb can not locate that file so I hardwired it in ESP-r to the exact location of socket.cfg (recompiled ESP-r, etc.). I then added a write statement to print out socketFD and the result was that socketFD is somehow renamed from socket.cfg to “socket.cfgbcvtb.F90” (this is with ESP-r, possibly renamed to something else in other programs).

We are replicating the error also with cclient and in two different machines.

We are using OpenSuse via VirtualBox (64 bit). We have not tried the Windows installation. I also tried version 1.4.0 but no luck with that either.

Could you please confirm that the Linux version is currently functional with external programs? Any idea of what may be going wrong with our case?

Thank you, Georgios

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2015-10-20 17:22:59 -0600

updated 2015-10-20 17:26:37 -0600

I can confirm that it runs fine on my Ubuntu 14.04 virtual machine. Please note that the BCVTB has been compiled and tested with that version. So you might want to give this version a try. If the problem persists on Linux then let me know as you seem to have been able to run the Windows version successfully. Thanks!
Thierry

edit flag offensive delete link more
0

answered 2015-11-02 21:12:12 -0600

G's avatar

Hi,

This has been solved. Ubuntu and Debian systems work OK with bcvtb. OpenSuse does not, probably because we were missing a package or a specific library.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2015-10-17 06:48:18 -0600

Seen: 280 times

Last updated: Nov 02 '15