In stomate, the variables ldforcing_write and ldcarbon_write were received as argument intent(in). These variables come from sechiba and are set as control_flags%ok_co2 and control_flags%ok_stomate.
Now removed these variables from arguments and use directly the control_flags in stomate.
A special case for teststomate, add a new variable allow_forcing_write=false in teststomate and true for other cases. This flag must be true to write stomate_forcing.nc file.