Hi all,
I'm trying to compile CFDEM on CentOS 7 (in an OpenNebula VM).
I've compiled OF 30x and LIGGGHTs from source and they are working.
I'm using additionalLibs_30x and I've adapted the OFversion.H file
Error appears to be due to mpi version / location.
MPI is load though module load, which is load through ~/.bashrc ("module load mpi/openmpi-x86_64").
I think I have to adapt the makefile for the mpi locations and libs. Any tips on this?
I now there's a distro-agnostic approach but there they compile mpi from source. I was hoping to avoid that.
Thanks in advance for your help.
Cheers,
Victor
Attachment | Size |
---|---|
![]() | 167.18 KB |
j-kerbl | Tue, 03/08/2016 - 14:29
Hi Victor,
Hi Victor,
which compilation-script was used?
Please try again with cfdemCompCFDEMall to make sure the LIGGGHTS libraries are compiled correctly.
Cheers
Josef
aaigner | Tue, 03/08/2016 - 14:52
Not really your fault ...
Hi Victor,
that looks like an error, I fixed a few day ago in our development version. It is due to your newer compiler.
Either you wait for the next release, which may take a while, since the last one was just 2 months ago. Or you change some lines in the code ...
In the forceSubModel you have to change the label& index into const label& index for the functions partToArray, partToArrayAnisotropic and partToArrayAnisotropicTorque. (in both files *.H and *.C)
On this occasion you can also change the vector& dratTot, vector& CdExtra and vector& CdTorque to const, too.
Bests
Andreas
Daniel Queteschiner | Tue, 03/08/2016 - 15:57
Hi Andreas
>> change the
label& index
intoconst label& index
How about just
label index
;-)Cheers
Daniel
vkoppejan | Wed, 03/09/2016 - 15:01
Thanks for the replies
Thanks for the replies,
will this also solve the unfound mpi messages at the top and the' /usr/bin/ld: cannot find -llagrangianCFDEM-PUBLIC-3.0.x' further down in the code?