huilinye / OpenFSI

A highly efficient and portable fluid-structure simulation package based on immersed-boundary method
GNU General Public License v3.0
32 stars 20 forks source link

Problems in compiling LAMMPS as a library #5

Open SONE333 opened 1 year ago

SONE333 commented 1 year ago

Excuse me, I have the following question files(dihedral_bend.cpp): error: expression cannot be used as a function 391 | force->bounds(arg[0],atom->ndihedraltypes,ilo,ihi);

josepedro commented 1 year ago

Hi @SONE333 ,

Which version of LAMMPS are you using? I'm using lammps-30Jul2016 and I managed to get rid of this issue.

Best,

SONE333 commented 1 year ago

lammps-3Mar20 Can I have this resource for you, please?Because I can't find your version of lammps.

SONE333 commented 1 year ago

Sorry, I looked carefully on the official website and found the version you mentioned, and I have a question for you, is there a version requirement for palabos?

josepedro commented 1 year ago

Hi @SONE333,

The version required for Palabos is https://gitlab.com/unigespc/palabos/-/tree/v2.1r0?ref_type=tags

Best,

SONE333 commented 1 year ago

Thank you very much. It means a lot to me.

SONE333 commented 1 year ago

Sorry to bother you again.Do I need a "y" for the following problem? mv: whether to replace 'style_angle.h' and ignore the pattern 0644 (rw-r--r--)

SONE333 commented 1 year ago

I'm sorry to say that when I was doing a 2D compilation, I didn't have a problem at first, and then later I had the following problem,Do you have any ideas?

/home/sone/lammps_2016/lammps-30Jul16/src/Obj_mpi/../angle_rbc.cpp:104: undefined reference to `LAMMPS_NS::Angle::molecules_in_group(int&, int&)' collect2: error: ld returned 1 exit status scons: [palammps2D] Error 1 scons: building terminated because of errors. make: [Makefile:87:compile] error 2

SONE333 commented 1 year ago

I tried to recompile the libraries for lammps to solve the above problem, but now I have a new problem, so if you have time, you can read my newly posted issue.Thank you for helping me. It means a lot to me.

SONE333 commented 1 year ago

Hi @SONE333,

The version required for Palabos is https://gitlab.com/unigespc/palabos/-/tree/v2.1r0?ref_type=tags

Best,

I'm sorry to bother you.How to run palammps2D after successful compilation with the following command? Abort(1) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0