I encountered a segmentation fault while running an MBPT calculation with FAC through the Python interface.
The error message from Slurm is:
/var/spool/slurmd/job847232/slurm_script: line 13: 2298263 Segmentation fault (core dumped) python3 FAC.py
The segmentation fault does not occur when I reduce the number of configurations included in the MBPT calculation. This suggests that the issue may be related to the Hamiltonian matrix dimension becoming too large, possibly for a particular symmetry block. Are there any suggested strategies to avoid this issue, such as changing MBPT settings, or increasing the Hamiltonian matrix size limit?
from pfac.fac import *
import os
InitializeMPI(32)
z = 50
k = 36
a = ATOMICSYMBOL[z]
SetAtom(a)
SetUTA(0)
Closed("1s 2s 2p 3s 3p 3d")
Config('4s2 4p6', group='4s2 4p6')
Config('4s2 4p5 4d1', group='4s2 4p5 4d1')
Config('4s2 4p5 4f1', group='4s2 4p5 4f1')
Config('4s1 4p6 4d1', group='4s1 4p6 4d1')
Config('4s1 4p6 4f1', group='4s1 4p6 4f1')
Config('4s2 4p5 5*1', group='4s2 4p5 5*1')
Config('4s2 4p4 4d2', group='4s2 4p4 4d2')
Config('4s2 4p4 4d1 4f1', group='4s2 4p4 4d1 4f1')
Config('4s2 4p4 4f2', group='4s2 4p4 4f2')
Config('4s1 4p5 4d2', group='4s1 4p5 4d2')
Config('4s1 4p5 4d1 4f1', group='4s1 4p5 4d1 4f1')
Config('4s1 4p5 4f2', group='4s1 4p5 4f2')
Config('4s2 4p3 4d3', group='4s2 4p3 4d3')
Config('4s2 4p3 4d2 4f1', group='4s2 4p3 4d2 4f1')
Config('4s2 4p3 4d1 4f2', group='4s2 4p3 4d1 4f2')
Config('4s2 4p3 4f3', group='4s2 4p3 4f3')
Config('4s1 4p4 4d2 4f1', group='4s1 4p4 4d2 4f1')
Config('4s1 4p4 4d1 4f2', group='4s1 4p4 4d1 4f2')
Config('4s2 4p5', group='4s2 4p5')
conf_list = ['4s2 4p6', '4s2 4p5 4d1', '4s2 4p5 4f1', '4s1 4p6 4d1', '4s1 4p6 4f1', '4s2 4p5 5*1',
'4s2 4p4 4d2', '4s2 4p4 4d1 4f1', '4s2 4p4 4f2', '4s1 4p5 4d2', '4s1 4p5 4d1 4f1', '4s1 4p5 4f2',
'4s2 4p3 4d3', '4s2 4p3 4d2 4f1', '4s2 4p3 4d1 4f2', '4s2 4p3 4f3', '4s1 4p4 4d2 4f1', '4s1 4p4 4d1 4f2',
'4s2 4p5']
ConfigEnergy(0)
OptimizeRadial(['4s2 4p6', '4s2 4p5 4d1', '4s2 4p5 4f1', '4s2 4p5'])
ConfigEnergy(1)
k = 3
n1 = [4,5,6,7,8,9,10,11,12,13,14]
n2 = [4,5,6,7,8,9,10,11,12,13,14]
Structure(1, 2)
StructureMBPT('b.en', ['corr.h', 'ham.h'], conf_list, k, n1, n2, len(conf_list)) # Causing segmentation fault
# StructureMBPT('b.en', ['corr.h', 'ham.h'], conf_list, k, n1, n2, 2) # Successive run
MemENTable('b.en')
PrintTable('b.en', 'a.en', 1)
BasisTable('basis.ba')
FinalizeMPI()
Dear all,
I encountered a segmentation fault while running an MBPT calculation with FAC through the Python interface.
The error message from Slurm is:
The segmentation fault does not occur when I reduce the number of configurations included in the MBPT calculation. This suggests that the issue may be related to the Hamiltonian matrix dimension becoming too large, possibly for a particular symmetry block. Are there any suggested strategies to avoid this issue, such as changing MBPT settings, or increasing the Hamiltonian matrix size limit?
My python input file is