cfd_datacoupling_file error while compiling LIGGGHTS

Submitted by Maryam on Wed, 05/16/2012 - 23:00

Hello experts,

I was trying to build CFDEM when I got stuck in LIGGGHTS installation part. I tried using different make files, I also edited MPI pathes, however, every time, I get this error about which I absolutely don't have any clue:

cfd_datacoupling_file.cpp:331:41:error: asleepa was not declared in this scope

Could any body please help?

Maryam

ckloss's picture

ckloss | Mon, 05/21/2012 - 14:16

Hi Maryam,

sounds a bit weird... what versions of LIGGGHTS and CFDEMcoupling are you using?

Cheers, Christoph

Maryam | Wed, 05/23/2012 - 22:34

Hi Christoph,

I could not find the information about the version of LIGGGHTS, however I am using the instructions which is currently in the download page: “INSTALL LIGGGHTS, OpenFOAM(R) and CFDEM on Ubuntu 10.04 Lucid”

My advisor suggested adding #include < unistd.h > to the cfd_datacoupling_file.cpp file in the src folder, and it solved the problem that was, apparently, related to ‘sleep’ function (which I don’t know what it is)

Thank you

Maryam

ckloss's picture

ckloss | Wed, 05/23/2012 - 23:05

ok, that makes sense... I was confused with the line number b/c in the current version this is a blank line...
But makes sense, as sleep() is a system call, so will might depend on the system if unistd.h is included.
Will include that statement for the next release

Cheers, Christoph