Giter Club home page Giter Club logo

kmlp's Introduction

== Building LAMMPS with the KMLP code ===

LAMMPS + KMLP can be built using the traditional makefile build system. Instructions for this approache is included here (make directory, respectively).

Regardless of compilation method, the user will need a stable release of LAMMPS 
(https://lammps.sandia.gov/) as well as the dlib c++ library (http://dlib.net/). 
They can be downloaded either as a tarball or using git:

* LAMMPS:
git clone -b stable https://github.com/lammps/lammps.git

* DLIB:
git clone https://github.com/davisking/dlib.git

== MAKE ==

To compile LAMMPS + KMLP with the traditional makefile approach, the dlib library must 
be compiled separately and linked with LAMMPS. 

To compile LAMMPS + KMLP with make:

1. Compile dlib using the following commands: 
	cd dlib/examples
	mkdir build
	cd build
	cmake ..
	cmake --build . --config Release

2. Add dlib to library path:
	export LIBRARY_PATH=/path/to/dlib/examples/build/dlib_build
	
3. Edit MAKE/Makefile.KMLP so that /path/to/dlib on line 51 is your actual path. Then copy 
Makefile.KMLP into lammps/src/MAKE/MINE.

4. Copy pair_ml_energy.cpp, pair_ml_energy.h, Makefile.lib and style_pair.h into lammps/src. 

5. Compile LAMMPS with the desired packages. See https://lammps.sandia.gov/doc/Build_package.html 
for information about installing packages with make.
	cd /path/to/lammps/src
	make [yes-pkg]
	make KMLP

This will yield the executable lammps/src/lmp_KMLP.


	

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.