Hi @SarahAlidoost @yijian
I found that the refactoring StartInit causes some changes in soil properties parameters. I used the Plumber2 data AR-SLu site to do a test run, and prove that there are some changes due to refactoring as I mentioned here.
Although these changes occasionally didn't affect the results of AR-SLu due to the different soil depth settings (variables initND1, initND2, ... initND6), it did change the result in my case.
I put my case here for your information. In my case, the Tot_depth = 100, the value of initNDs are initND1 = 5, initND2 = 10, initND3 = 20, initND4 = 40, initND5 = 60, initND6 = 80. The number of soil layers is 29.
There are two changes I found for now:
-
The value and length of IS changed: the length of IS changes from 29 (before refactor) to 30 (after refactor)

In this figure, the left part is the results of the old version (before refactoring), and the right part is the results after reforcing.
-
The IS is the soil type index which is used to define the soil parameters for soil layers. The changes of IS cause different results for soil hydraulics parameters such as Ks, Theta_s, Theta_r. (The value of Theta_f should be changed also, since it didn't save in the old version, so I didn't show it in the following figure.)

In this figure, the first column is the no. of the soil layer, and the 2-4 columns in the left (before refactoring) and right (after refactoring) parts are the value of Ks, theta_s and theta_r, respectively.
The difference of soil hydraulic parameters changes the simulated soil moisture, and energy and carbon fluxes. In order to make the results of the two versions consistent, the soil hydraulic parameters in the two versions must be the same.
Please let me know if you need more information.
Hi @SarahAlidoost @yijian
I found that the refactoring
StartInitcauses some changes in soil properties parameters. I used the Plumber2 dataAR-SLusite to do a test run, and prove that there are some changes due to refactoring as I mentioned here.Although these changes occasionally didn't affect the results of
AR-SLudue to the different soil depth settings (variablesinitND1, initND2, ... initND6), it did change the result in my case.I put my case here for your information. In my case, the
Tot_depth = 100, the value ofinitNDsareinitND1 = 5, initND2 = 10, initND3 = 20, initND4 = 40, initND5 = 60, initND6 = 80. The number of soil layers is 29.There are two changes I found for now:
The value and length of

ISchanged: the length ofISchanges from 29 (before refactor) to 30 (after refactor)In this figure, the left part is the results of the old version (before refactoring), and the right part is the results after reforcing.
The

ISis the soil type index which is used to define the soil parameters for soil layers. The changes ofIScause different results for soil hydraulics parameters such asKs, Theta_s, Theta_r. (The value ofTheta_fshould be changed also, since it didn't save in the old version, so I didn't show it in the following figure.)In this figure, the first column is the no. of the soil layer, and the 2-4 columns in the left (before refactoring) and right (after refactoring) parts are the value of
Ks, theta_s and theta_r, respectively.The difference of soil hydraulic parameters changes the simulated soil moisture, and energy and carbon fluxes. In order to make the results of the two versions consistent, the soil hydraulic parameters in the two versions must be the same.
Please let me know if you need more information.