June 10, 2013 at 10:44 pm #1734
Hello all,rnrnI downloaded and installed the latest version of OpenLB and am trying to make one of the examples that came with it.rnrnHowever, every time that I try to make one of the examples, let’s say: “”bstep2d”” I receive this error message:rnrnrnmomentaOnBoundaries.hh:359:3: note: use ‘this->defineRhoU’ insteadrnmake: *** [../../build/precompiled/obj/boundaryCondition2D.o] Error 1rnmake: Leaving directory `/home/lucas/Desktop/OpenLB/olb-0.7r1/src/core’rn– Leaving src/core (compile)rnrnrnAnd then I went inside the /build/precompiled/obj to try to find the “”boundaryCondition2D.o and it wasn’t there. rnCan someone help me with this problem?rnrnI am running ubuntu 13.04 with a KDE interface “”Kubuntu”” on a virtual box (version 4.2.12 r84980)rnrnbelow is my compiler information:rnrngcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3rnCopyright (C) 2012 Free Software Foundation, Inc.rnThis is free software; see the source for copying conditions. There is NOrnwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.rnrnThank you very much in advance!rnJune 11, 2013 at 9:01 am #2099mathiasKeymaster
Dear lucasmr,rnrn Thanks for reporting the bug. If you cange line 359 in “”momentaOnBoundaries.hh”” in “”src/core”” from “”defineRhoU(cell, rho_, u_);”” to “”this->defineRhoU(cell, rho_, u_);”” it should work. rnrnWe will correct this in the next release.rnrnBest regardsrnMathiasJune 11, 2013 at 4:16 pm #2100
Thank you very much Mathias!rnrnI was so focused on the boundaryCondition2D.o that I didn’t payed attention on the note that was given to me just one line above.rnrnBut I tried the suggestion and now it is running fine.rnrnBest regards,rnrnLucasMRJune 13, 2013 at 3:19 pm #2101
Hello again Mathias,rnrnAfter the “”example”” simulations were successful in “”gcc”” I started to try to run the same examples on parallel using MPI as it is described in the user manual (which is quite helpful and detailed).rnrnI have mpich2 installed in my Ubuntu and I made the modifications required in the manual for running the examples in parallel:rnrnswitching the flags for CXX and PARALLEL_MODErnrnThe only difference is that my mpicc file has no capital letters (like the mpiCC described in the makefile.inc)rnSo I had to switch this too.rnrnThe first example that I tried to run in parallel is “”bstep2d”” however I am receiving a huge quantity of errors concerning “”undefined references”” . I am copying a link to the .txt file that I created with the terminal output after trying to compile, since it was too extensive to paste it here.rnrnWould you mind taking a look to see if you can identify a possible problem?rnrnI am again running these examples in my Ubuntu 13.04 powered by virtualbox 4.2.12rnrnmy processor is a intel i5 3320M with 4 cpu’s allocated to the ubuntu.rnrnHere is the link to the text file:rnrnhttps://www.dropbox.com/s/c57g8be6o1q2ojn/mpi_error.txtrnrnAgain, thank you very much in advance for your helprnrnP.S. I wasn’t sure if I should have created another topic for this matter, so I decided to follow up here instead. Please correct me if I acted wrong.June 24, 2013 at 5:27 am #2102mathiasKeymaster
Hi,rnrn””mpiCC”” and “”mpi++”” should work since OpenLB is written in C++. “”mpicc”” is for C.rnrnMathias
- You must be logged in to reply to this topic.