Python interface to LIGGGHTS using auto makefile

Submitted by AndresMM on Fri, 11/10/2017 - 11:01

Hi everyone,

I am trying to to install the python interface to LIGGGHTS and it does not work when I use the auto makefile.

I have three computers with LIGGGHTS installed. For tow of them I modified and used the ubuntuVTK6 makefile and compiled LIGGGHTS as normal. It worked, so I then compiled LIGGGHTS as shared libraries following the instructions and it worked as well.

In the third computer I used the auto makefile for the normal compilation, and it worked. However as I tried to compile LIGGGHTS as a shared library, it does not work.

After entering "make -f Makefile.shlib auto" I get
make[1]: Entering directory '/home/andres/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'
mpicxx -funroll-loops -fstrict-aliasing -Wall -Wno-unused-result -O2 -fPIC -fPIC -I/usr/include/vtk-6.2 -DLAMMPS_VTK -c universe.cpp
mpicxx -funroll-loops -fstrict-aliasing -Wall -Wno-unused-result -O2 -fPIC -fPIC -shared -o ../liblmp_auto.so \
compute_gyration_molecule.o min_linesearch.o fix_spring.o fix_viscous.o dump_decomposition_vtk.o atom.o fix_template_multiplespheres.o fix_heat_gran_conduction.o minimize.o compute_ke_atom.o fix_efield.o fix_print.o fix_sph_pressure.o input_mesh_tri.o dump_custom_vtm.o fix_check_timestep_gran.o fix_drag.o compute_com_molecule.o property_registry.o run_time.o fix_scalar_transport_equation.o neigh_half_nsq.o tet_mesh.o compute_surface.o compute_pressure.o fix_multisphere.o displace_atoms.o write_dump.o compute_rdf.o fix_contact_property_atom.o compute_property_local.o fix_heat_gran.o neigh_list.o region_plane.o compute_centro_atom.o random_mars.o mesh_module_stress.o fix_cfd_coupling_convection.o fix_lineforce.o fix_move_mesh.o fix_nve_limit.o region_mesh_tet.o compute_com.o fix_diam_max.o cfd_datacoupling_mpi.o tri_mesh.o library.o compute_atom_molecule.o pair_hybrid.o fix_insert.o fix_spring_self.o fix_nve_noforce.o angle_hybrid.o dump_movie.o fix_contact_property_atom_wall.o input.o fix_wall.o compute_pe_atom.o region_block.o dump_local_gran.o compute_msd_molecule.o fix_sph_density_corr.o particleToInsert_multisphere.o atom_vec_sph_var.o atom_vec_atomic.o atom_map.o fix_base_liggghts.o neigh_full.o fix_insert_stream.o dump_xyz.o fix_multicontact_halfspace.o properties.o memory.o sort_buffer.o fix_aveforce.o fix_spring_rg.o pair_gran_proxy.o fix_ave_atom.o change_box.o neigh_bond.o fix_wall_region.o dump_particle.o group.o region_prism.o dump_vtk.o neigh_dummy.o neigh_half_bin.o dump_local_gran_vtk.o fix_template_sphere.o fix_move.o fix_nve_sphere.o region_cone.o neigh_respa.o random.o fix_dt_reset.o fix_wall_gran.o dump_mesh.o compute_pair_gran_local.o fix_check_timestep_sph.o fix_setforce.o atom_vec_sph.o fix_fiber_spring_simple.o dump_euler_vtk.o granular_wall.o replicate.o read_dump.o fix_nve.o fix_read_restart.o reader.o improper_hybrid.o fix_box_relax.o granular_pair_style.o lattice.o fix_store.o compute_group_group.o fix_buoyancy.o reader_native.o fix_cfd_coupling_force_implicit.o update.o compute_reduce_region.o compute_pe.o thermo.o compute_erotate_multisphere.o compute_erotate.o fix_sph_density_continuity.o fix_insert_pack.o region_sphere.o region_intersect.o fix_deform_check.o output.o fix_property_atom_region_tracer.o fix_planeforce.o fix_ave_correlate.o compute_coord_atom.o neigh_request.o compute_slice.o dump_atom_vtk.o domain.o compute_msd.o compute_reduce.o universe.o atom_vec.o compute_rigid.o dihedral.o region.o fix_enforce2d.o pair_soft.o respa.o compute_property_atom.o compute_cna_atom.o fix_property_atom_tracer.o dump_custom.o input_multisphere.o fix_nve_sph.o compute_erotate_sphere.o custom_value_tracker.o dump_mesh_stl.o neighbor.o fix_massflow_mesh_sieve.o compute_gyration.o modified_andrew.o write_restart.o fix_neighlist_mesh.o read_data.o pair_gran.o velocity.o min_cg.o procmap.o compute_stress_atom.o neigh_half_multi.o compute_cluster_atom.o cfd_datacoupling_file.o pair_sph_artvisc_tenscorr.o fix_continuum_weighted.o fix_nve_sph_stationary.o particleToInsert.o fix_external.o delete_bonds.o force.o finish.o variable.o compute_ke_multisphere.o run.o dump_custom_vtk.o image.o fix_ave_histo.o bond.o atom_vec_sphere_w.o fix_store_state.o improper.o reader_xyz.o mesh_module_liquidtransfer.o fix_freeze.o neigh_gran.o bond_hybrid.o fix_property_atom_tracer_stream.o fix_respa.o fix_region_variable.o modify.o tri_mesh_planar.o dump_image.o compute_erotate_sphere_atom.o atom_vec_sphere.o error.o fix_wall_region_sph.o set.o fix_property_atom.o signal_handling.o fix_cfd_coupling.o delete_atoms.o fix_gravity.o fix_rigid.o fix.o atom_vec_charge.o neigh_stencil.o compute_displace_atom.o multisphere.o dump.o compute_property_molecule.o compute_contact_atom.o create_box.o fix_particledistribution_discrete.o fix_wall_sph.o compute_bond_local.o fix_cfd_coupling_force.o fix_cfd_coupling_convection_species.o fix_mesh.o container_base.o read_restart.o citeme.o lammps.o random_park.o region_cylinder.o irregular.o dump_local.o fix_mesh_surface.o write_data.o min.o fix_momentum.o fix_store_force.o cfd_regionmodel_none.o create_atoms.o mesh_module.o pair.o angle.o library_cfd_coupling.o atom_vec_line.o special.o pair_hybrid_overlay.o fix_sph.o rotate.o cfd_datacoupling.o bounding_box.o fix_cfd_coupling_convection_impl.o math_extra.o fix_ave_euler.o fix_ave_time.o fix_lb_coupling_onetoone.o input_mesh_tet.o neigh_derive.o fix_property_global.o fix_deform.o fix_minimize.o compute.o fix_template_multisphere.o fix_contact_history.o fix_addforce.o multisphere_parallel.o verlet.o mesh_mover_rotation.o kspace.o dihedral_hybrid.o integrate.o timer.o atom_vec_ellipsoid.o atom_vec_hybrid.o compute_inertia_molecule.o global_properties.o fix_sph_density_summation.o compute_ke.o compute_temp.o comm.o fix_multisphere_comm.o fix_multisphere_break.o compute_nparticles_tracer_region.o fix_insert_rate_region.o fix_massflow_mesh.o fix_contact_history_mesh.o pair_sph.o fix_ave_spatial.o mesh_mover_linear.o mesh_module_stress_servo.o region_wedge.o region_union.o modify_liggghts.o fix_adapt.o dump_mesh_vtk.o region_neighbor_list.o contact_models.o -lvtkCommonCore-6.2 -lvtkIOCore-6.2 -lvtkIOXML-6.2 -lvtkIOLegacy-6.2 -lvtkIOImage-6.2 -lvtkCommonDataModel-6.2 -lvtkParallelCore-6.2 -lvtkParallelMPI-6.2 -lvtkCommonExecutionModel-6.2 -lvtkFiltersCore-6.2 -lvtksys-6.2 -lvtkCommonMisc-6.2 -lvtkCommonTransforms-6.2 -lvtkCommonMath-6.2 -lvtkIOXMLParser-6.2 -lvtkCommonSystem-6.2 -lvtkDICOMParser-6.2 -lvtkmetaio-6.2 -lvtkIOParallelXML-6.2 -L/usr/lib/x86_64-linux-gnu/
make[1]: Leaving directory '/home/andres/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_auto'

Are the python install instructions also supposed to work when one uses the Auto makefile?

Should one instead use a modified makefile?

Cheers,
Andrés