add some minimal usage examples

This commit is contained in:
Axel Kohlmeyer
2020-10-18 00:45:21 -04:00
parent 58ceab93ec
commit 1ed735e311
4 changed files with 60 additions and 0 deletions

17
swig/run_perl_example.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
cat > example.pl <<EOF
use pllammps;
\$lmp = pllammps::lammps_open_no_mpi(0,undef,undef);
\$ver = pllammps::lammps_version(\$lmp);
print("LAMMPS version ",\$ver,"\n");
pllammps::lammps_close(\$lmp)
EOF
PERL5LIB=$PWD:${PERL5LIB-PWD}
export PERL5LIB
perl example.pl