disabling cutt off of xi global before and after the local problem
very bad practice to get the code running: implemening Gapon's convention for cation exchange