How to access region_sphere.cpp

Dear LAMMPS users,

Hi,

I need to have access to region_sphere.cpp and I’m using Windows version of LAMMPS. I understand that it is available in /src in linux version. But, src folder is not available in my windows directory. So, I wonder if you could please help me out.

Thanks,

Ali

Hi,

It depends on your purpose. If you just want to read/ review the code, you can just download the .tar version (linux version) and extract it. However, if you want to make some modification to the source .cpp file, I guess it’s rather impossible to do it directly in Windows. As far as I know, the windows executable version is made by using cross compiler in Fedora (linux), thus if you want to make some modification you can either modify it in Fedora and recompile the executable or install Cygwin in Windows then extract the .tar source file.

Dear LAMMPS users,

Hi,

I need to have access to region_sphere.cpp and I'm using Windows version of LAMMPS. I understand that it is available in /src in linux version. But, src folder is not available in my windows directory. So, I wonder if you could please help me out.

if you want the source, download the source. simple as that.

axel.

Dear Axel,

Hi,

As I mentioned, I was talking about windows version. I was asking if I can access to the file in windows version directly as well as linux version or I have to modify on the linux version and then compile it to build a windows version. In any case, I really appreciate that you replied to my question.

Kind regards,

Ali

It is still not exactly clear to me what you are really asking. The source files are the same for Windows and Linux. If you want to modify the source and recompile on Windows that is difficult. If you just want to see the source you can find it on https://github.com/lammps/lammps/

Dear Axel,

Hi,

As I mentioned, I was talking about windows version. I was asking if I can access to the file in windows version directly as well as linux version or I have to modify on the linux version and then compile it to build a windows version. In any case, I really appreciate that you replied to my question.

but i regret having answered. you are not making much sense here, and
it seems that your allergy towards reading the LAMMPS manual is
getting worse. please drop some benadryl (or whatever else will
suppress the allergic symptoms) and start reading.

axel.

Hi Stefan,

Thanks for your kind response. What I mean was that when you install LAMMPS from " https://lammps.sandia.gov/download.html " it gives you an .exe file. I was thinking if there is a way I can access to region sphere file in the windows version or not. I’m aware that I can access to the file in the linux version, modify it and then compile the whole for the sake of using in windows using C++ or cygin. But, I was thinking may be there is a way to do the same without going through compiling. Anyway, I modified my structure using an external software.

Regards,

Ali

Axel,

With all respect, I don’t think it is correct. Anyway, thanks for the comment.

Ali,

You can see the source at https://github.com/lammps/lammps/blob/master/src/region_sphere.cpp or do as Axel suggested and download the entire source code here: http://lammps.sandia.gov/download.html​.

Stan