I am trying to divide a G4Polyhedra using G4PVDivision. The code compiles correctly, but when executed it throws an error that 'Divisions for G4Polyhedra currently NOT supported in MT-mode.' I am using G4RunManager instead of G4MTRunManager and yet the error persists. And then I also have set the value of of the environment variable G4MULTITHREADED to 0 in geant4make.sh file manually, but the error remains. What is the possible solution?
I had installed G4 with the G4MULTITHREADED = ON flag though.
you cannot use divided polyhedra in MT mode (you have an MT installation and cannot change the installation by setting an environment variable). It is one of the documented limitations.
Simply avoid divided polyhedra if you need MT.