Fix for ticket #349. Tested and the model runs correctly when write frequencies are set to =1D and IMPOSE_CN=n. N input values are now read directly from the restart files.