Does anyone has experience on calling lammps from fortran on windows?

Hello everyone,
I am trying to call lammps from fortran in windows. Now I can run lammps parallelly in windows. But when I try to compile the example program in the COUPLE/simple directory, I always got error message. I used MS visual studio 2010 as my compilation tool. Now I wonder:

  1. Does the windows version of lammps include the static library or dynamics shared library? Do I need to recompile the lammps on windows so it can include static library or dynamics shared library?
  2. Does anyone has experience on calling lammps from fortran on windows? I searched the internet but found no proper answer for that (either too complicated or too simple to follow).
    Thanks a lot for your help.
    Guangyu Wang

Hello everyone,
I am trying to call lammps from fortran in windows. Now I can run lammps
parallelly in windows. But when I try to compile the example program in the
COUPLE/simple directory, I always got error message. I used MS visual
studio 2010 as my compilation tool. Now I wonder:
1. Does the windows version of lammps include the static library or
dynamics shared library? Do I need to recompile the lammps on windows so it
can include static library or dynamics shared library?

neither windows​ version i know about contains a library. you would need to
roll your own.

2. Does anyone has experience on calling lammps from fortran on windows? I
searched the internet but found no proper answer for that (either too
complicated or too simple to follow).

​the fortran2 interface should work, for as long as your fortran compiler
properly supports fortran2003 and is consistent with your c​++ compiler.

in any case, if you don't have any significant experience in this, you are
likely much better off working with Linux. not only is the compilation
process easier, you also don't have to deal with portability issues. there
is a good reason that even the windows binaries, that are provided via
lammps.org are built on linux with a cross compiler.

axel.

Dr. Axel,
Thanks for you reply. I will have a try.
Guangyu Wang