Updated with modifications done in v6/IPSLCM6 up until revision 2510. Not considering modifictions done for NEMO and pmagic.