ubuntu Makefile for Suse 11

Submitted by rahulsoni on Tue, 01/21/2014 - 07:42

I have the Ubuntu makefile for Opensuse 12.3 but the cluster system is on Suse 11. Can anyone please provide me the working makefile for Suse 11

PaulWinkler's picture

PaulWinkler | Thu, 02/13/2014 - 11:26

Hi rahulsoni,

I have problems to get LIGGGHTS 3.0 on my SuseLE 11 too. I tried mpic++ (MPICH2, OpenMPI) and g++ (4.3, 4.8.2). Compiling runs smooth, but all I got was an error about pair styles. The script I used is chute_wear from version 3.0 which runs on an other machine well. Runing out of ideas, since the compiler doesn't give an error.

Regards,

Paul

PaulWinkler's picture

PaulWinkler | Thu, 02/13/2014 - 15:21

Hi,

working on that issue, I adressed the error to force.cpp. Running an example from version 3.0 (chute_wear) I got: ERROR: Invalid pair style (../force.cpp:439)
I piped the stdout and errout to text files, force.cpp is in stdout but there are no errors about that (but a lot about fix_addforce.cpp and so on). In line 439 of force.cpp you get the error message if something with the granular pair style (which I is used in chute_wear) fails. So I looked what’s about the pair_gran_(base).cpp/h in error log and I got for instance:


../pair.cpp: In Elementfunktion »void LAMMPS_NS::Pair::reinit()«:
../pair.cpp:239:10: Warnung: Variable »tmp« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
double tmp;

or things like that:


../pair_sph.cpp: In Konstruktor »LAMMPS_NS::PairSph::PairSph(LAMMPS_NS::LAMMPS*)«:
../pair_sph.cpp:80:14: Warnung: veraltete Konvertierung von Zeichenkettenkonstante in »char*« [-Wwrite-strings]

But nothing fatal? The -Wunused flag is not set, setting it has no effect. But here the make file header:


g++ = RedHat Linux box, g++4, MPICH2, FFTW

SHELL = /bin/sh

# ---------------------------------------------------------------------
# compiler/linker settings
# specify flags and libraries needed for your compiler

CC = g++
CCFLAGS = -g -O -Wunused
SHFLAGS = -fPIC
DEPFLAGS = -M

LINK = g++
LINKFLAGS = -g -O
LIB =
SIZE = size

ARCHIVE = ar
ARFLAGS = -rc
SHLIBFLAGS = -shared

I am using -DLAMMPS_GZIP -DLAMMPS_JPEG -DLAMMPS_PNG, STUBS for MPI and the VORONOI package.
Has anybody an idea?

Regards,

Paul

richti83's picture

richti83 | Fri, 02/14/2014 - 16:59

Hi Paul,

make sure you use the new example scripts:
https://github.com/CFDEMproject/LIGGGHTS-PUBLIC/blob/master/examples/LIG...
Line 28 and 38 are different bc. of the new implementation of the pair gran model.
I have no probles running chute_wear with LIGGGHTS3:

LIGGGHTS (Version LIGGGHTS-mingw64 3.0.0, compiled 2014-02-08 18:29:05 by a722\christian based on LAMMPS 23 Nov 2013)
Created orthogonal box = (-0.5 -0.2 -0.4) to (0.1 0.2 0.15)
1 by 1 by 1 MPI processor grid

Reading STL file 'meshes/simple_chute.stl'

Reading STL file 'meshes/insertion_face.stl'
Fix particledistribution/discrete (id pdd1): distribution based on mass%:
pts1: d=3.000000e-003 (max. bounding sphere) mass%=30.000000%
pts2: d=5.000000e-003 (max. bounding sphere) mass%=70.000000%
Fix particledistribution/discrete (id pdd1): distribution based on number%:
pts1: d=3.000000e-003 (max. bounding sphere) number%=66.489362%
pts2: d=5.000000e-003 (max. bounding sphere) number%=33.510638%
0 atoms in group nve_group
Setting up run ...
Import and parallelization of mesh cad containing 1616 triangle(s) successful
Import and parallelization of mesh inface containing 2 triangle(s) successful
INFO: Particle insertion ins: 12.766349 particles every 1000 steps - particle rate 1276.634850 (mass rate 0.100000)
6000 particles (mass 0.469986) within 469000 steps
Memory usage per processor = 19.8111 Mbytes
Step Atoms KinEng 1 Volume
0 0 -0 0 0.132
INFO: Particle insertion ins: inserted 12 particle templates (mass 0.000937) at step 1
- a total of 12 particle templates (mass 0.000937) inserted so far.
1 12 0.0004686209 0 0.132
Loop time of 0.0285482 on 1 procs for 1 steps with 12 atoms

Good Luck,
Christian.

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

rahulsoni | Tue, 02/25/2014 - 07:47

Can anyone provide the working and complete makefile for Suse11

--
Regards

Rahul Kumar Soni
Scientist, CSIR - IMMT, India

PaulWinkler's picture

PaulWinkler | Wed, 02/26/2014 - 11:20

Hi Rahul,

it seems we have to help ourselves. Maybe we can exchange our make files and error logs. First some things to my machine:
- SUSE Linux Enterprise Server 11 (x86_64)
I have no root privileges, so I have to use the given packages. You can load them as modules. I am using:
- acml/4.4-sp-gcc
- boost/1.49.0-gcc
- cmake/2.8.10.2
- cuda/5.0
- eigen/2.0.12
- fftw/2.1.5-gcc
- gcc/4.8.2
- numpy/1.5.1-python2.6
- openmpi/1.4.3-gcc
- paraview/3.8.1
- python/2.6.6
- qt/4.7.2-gcc
- vtk/5.10
Unfortunately I don't know anymore, on which version I compiled LIGGGHTS 2.3.8 which runs without any problems.
My make file is based on 'serial', cause I do not use multi core (there are some issues in particle distribution using a grid for computational domains). I added some libs and path to include, for jpeg, png and voronoi support. The compiling runs through, but shows some errors. Which seems to be normal. The voronoi example runs fine, but when it comes to pair_style I got an error message 'Invalid pair_style'. Sometimes it fails on force.cpp(181) and sometimes on force.cpp(439). On a local installation (Mint 16) the same example run fine. I put the error out of make in a text file. Since nobody else seems to be interested in the problem we can discuss that via email and exchange files easily (captcha is annoying, the detach file function disappears and the notification didn't work either). You can contact me at Paul.Winkler@uni-weimar.de

Regards,
Paul