Hi Robert,
Thank you so much for answering me!
I really wasn't running the carbon module in my simulation. The modules that were enabled were only & aed2_tracer, & aed2_oxygen, & aed2_nitrogen, & aed2_phosphorus, & aed2_organic_matter, & aed2_phytoplankton and & aed2_totals.
But after your question, I did some tests by activating the carbon module. Ultimately, the model ran normally (without errors) by adding only the parameter c_excretion_target_variable = 'OGM_doc' in the phytoplankton module, without even having to activate & aed2_carbon.
However, the results are the same as the simulation in which I disable the parameters p_excretion_target_variable = 'OGM_dop' and n_excretion_target_variable = 'OGM_don, as I mentioned earlier.
The version I'm using GLM is 3.0.5 and AED is 1.3.2.