Skip to content

Inconsistency of Ions::setup when used multiple times #284

@dreamer2368

Description

@dreamer2368

Ions::setup is supposed to update the list of overlapping VL ions (overlappingVL_ions_). However, it is observed that the resulting overlapping ions are different even when the same local ion list is used.

A minimal example is implemented in ion-bug branch. A test executable test_overlapping_ion will be available if the code is fully installed (make install). This branch does not need libROM and can be compiled the same as release branch.

The executable test_overlapping_ion is compiled from src/test_overlapping_ion.cc. This works the same as the main mgmol driver mgmol-opt. In essence, it does the following job:

  • runs Ions::setup 3 times with 3 different ion configurations
  • save the corresponding overlapping VL ion lists
  • runs another Ions::setup with one of (previously used) 3 configurations
  • check if the resulting overlapping VL ion list is equivalent to the saved list

Example config and coordinate file are stored in examples/Carbyne-bug. Once the executable is installed, one can run the following script to check the test failure:

ROOT_DIR=/path/to/your/mgmol/repository
INSTALL_DIR=/path/to/mgmol/install/directory

cd ${ROOT_DIR}/examples/Carbyne-bug
srun -n 144 ${INSTALL_DIR}/bin/test_overlapping_ion -c carbyne.cfg -i carbyne.in

The test passes with the PinnedH2O example, but not with Carbyne example. If we want to manipulate local ion instead of overlapping VL ion in PR #274 , this bug must be fixed first. @jeanlucf22 , can you take a look at this bug?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions