but when it’s time to lammps_extract_compute, all the fields that are 0 are fine (ie same number of them at the same indices), but the other ones are not…
If I open the logs I can spot some differences:
python triclinic box = (0 0 0) to (2.2598259 1.9570657 3.5698786) with tilt (-1.1299129 0 0)
kotlin triclinic box = (0 0 0) to (2 1 3) with tilt (-1 0 0)
These differences can only happen, if there are differences in the commands (or files) that are sent to LAMMPS, or if some index variables are set to different values (or the interface does not pass them properly). I cannot give any more specific suggestions, since I know neither Kotlin nor Mala.
Now, I do understand your point of view, but here we are talking about something very curious and particular: some fields beings cast or interpreted as integers
I tried to modify the input file on purpose to
0.0 21.2598258677677969 xlo xhi
to see if Lammps detects the difference, and it does
Reading data file …
triclinic box = (0 0 0) to (21 1 3) with tilt (-1 0 0)
So, what else can differ other than the args for lammps_open_no_mpi, the input and the compute file and bring Lammps to do that?
Ps: I’m available to modify the source code to find the issue, but I’d need some hints
These are not input file commands but part of the data file and that is ready by the read_data command and thus it should not make any difference unless the two files are different. I suggest to insert the command line:
shell head -20 ${atom_config_fname}
And compare the output. This should echo what the box dimension information from the data file looks like for each case.
Doing computational science with any other locale setting than the C locale (i.e. plain ASCII) is asking for trouble. Native language support is something for fancy GUI apps, but not science.
This will not compile unless you have modified additional parts of LAMMPS.
If you make these kinds of changes to the LAMMPS sources, then you are on your own.
In general, LAMMPS will execute in the POSIX or C locale by default unless some application changes the global locale. So the LAMMPS executable will always expect numbers with a decimal point and no comma. However, if you embed the LAMMPS library into an executable that does set the locale, then LAMMPS will adhere to that.
I don’t use IDEs (unless you would call the emacs editor an IDE), but either inside the IDE or on the command line before you launch it or globally in your environment.
At this point, this is no longer a LAMMPS issue, but an issue with how you set up and use your machine and what you do in the code outside of LAMMPS. These are issues that are off-topic for a LAMMPS forum. You’ll have to search the web or talk to experts in those matters.
Ps: have I been silenced? It seems I cant reply anymore to you, or? I’m sorry if I bothered you and I couldn’t fully grasp what you told me, but I lack your background and expertise in the matter for that
You have hit the spam detection by being a new user and linking to the same website in multiple posts in close succession. I have restored the flagged posts from the moderator interface.
There is the saying “If you cannot stand the heat, get out of the kitchen”. Your problems are self-inflicted and I am not interested in spending any more time on this after I have determined that this is not a LAMMPS issue or something that I an interested in in general.