geogrid has inconsistent land information which lead real.exe to change the land mask.
Romain realized that when in the geogrid file (geo_em_d01.nc files) the landmask variable is inconsistent with the landuse variable the land/ocean information can be changed by real.exe when generating the wrfinput file.
wrf.exe does not read the land/sea mask from geo_em_d01.nc but gets it from the wrfinput_d01.nc.
As ORCHIDEE determines with the land/sea mask of geo_em_d01.nc on which points it needs to run it is essential that this information is consistent.
We need to add in geogrid.f90 the same consistency checks as those in real.exe