Author Topic: M3GNet error  (Read 3405 times)

0 Members and 1 Guest are viewing this topic.

Offline AsifShah

  • QuantumATK Guru
  • ****
  • Posts: 173
  • Country: in
  • Reputation: 2
    • View Profile
M3GNet error
« on: April 20, 2024, 21:21 »
Dear Admin,

When running M3GNet based molecular dynamics alongwith DZ3 correction as:

from tremolox.neighborlistcalculator.M3GNetCalculator import TremoloXM3GNetDirectPESCalculator
calculator_m3gnet = TremoloXM3GNetDirectPESCalculator(device='cpu')
calculator_d3 = TremoloXCalculator(parameters=DispersionD3Z(xc='PBE'))
calculator = CombinedCalculator([calculator_m3gnet,calculator_d3])


The simulations runs for sometime (few picoseconds) and then I get the following error:

TremoloXCalculator: Cart_create with procs 1 1 1 and periods 1 1 1 failed
Traceback (most recent call last):
  File "/home/Asif/QATK_V2023_12/quantumatk/V-2023.12/atkpython/bin/atkpython", line 8, in <module>
    sys.exit(__run_atkpython())
             ^^^^^^^^^^^^^^^^^
  File "zipdir/ATKExecutables/atkwrappers/__init__.py", line 780, in __run_atkpython
  File "VF_Multilayer_MoS2.py", line 406, in <module>
    md_trajectory = MolecularDynamics(
                    ^^^^^^^^^^^^^^^^^^
  File "zipdir/NL/Dynamics/MolecularDynamics/MolecularDynamics.py", line 1073, in MolecularDynamics
  File "zipdir/NL/Dynamics/MolecularDynamics/DynamicsEnergyForcesStress.py", line 30, in wrapped_analysis
  File "zipdir/NL/Calculators/DensityFunctionalTheory/LCAOCalculator/Analysis/FastEnergyForcesStress.py", line 46, in forcesFunction
  File "zipdir/NL/Calculators/DensityFunctionalTheory/LCAOCalculator/Analysis/FastEnergyForcesStress.py", line 72, in _checkAndUpdate
  File "zipdir/NL/Calculators/DensityFunctionalTheory/LCAOCalculator/Analysis/FastEnergyForcesStress.py", line 100, in _update
  File "zipdir/NL/CommonConcepts/Configurations/AtomicConfiguration.py", line 3080, in update
  File "zipdir/NL/Calculators/CombinedCalculator.py", line 373, in _update
  File "zipdir/NL/CommonConcepts/Configurations/AtomicConfiguration.py", line 3080, in update
  File "build/atkpython/lib/python3.11/site-packages/tremolox/neighborlistcalculator/neighborlistcalculator.py", line 467, in _update
  File "build/atkpython/lib/python3.11/site-packages/tremolox/TremoloBaseCalculator.py", line 501, in _update
  File "build/atkpython/lib/python3.11/site-packages/tremolox/calculation/calculation.py", line 311, in __init__
  File "build/atkpython/lib/python3.11/site-packages/tremolox/calculation/calculation.py", line 251, in wrapper
  File "build/atkpython/lib/python3.11/site-packages/tremolox/calculation/calculation.py", line 540, in _setSystem
  File "build/atkpython/lib/python3.11/site-packages/tremolox/pymolo_avx.py", line 813, in conf_data_domain
tremolox.RuntimeError: SomeError: Error in file /slowfs/qatkdev2/users/qatktest/de02vlbamboo06/exlibs/.conan/data/tremolox/2023.08/quantumatk/stable/build/0bd0f4ede5a9e99cf053738a382952d716d95ea1/src/comm.cpp, line 234 (0): SomeError: StartParallel: Cart_create failed


Kindly help in this regard.

Offline Julian Schneider

  • QuantumATK Staff
  • QuantumATK Guru
  • *****
  • Posts: 164
  • Country: dk
  • Reputation: 25
    • View Profile
Re: M3GNet error
« Reply #1 on: April 25, 2024, 08:49 »
Hi Asif,

this is a known problem when using the CombinedCalculator with 2 FF calculators, unfortunately. We have also encountered it recently.
We will fix it for the next release, by integrating the M3GNet and D3 dispersion more closely.

Unfortuntely we don't know of a real workaround for it right now.