youhuiqi7455
New member
Hello,wrf experts
I try to add new variables, such as rock, to the clm mode of wrf, and modify the corresponding parameterization scheme. At present I have added new variables to'geogrid' and modified the following files:
Registry.EM_COMMON
module_first_rk_step_part1.F
module_sf_clm.F
module_surface_driver.F
The recompilation was successful, but there was a problem with'wrf.exe', and the error message:'Segmentation fault-invalid memory reference.'
Display in rsl.out:'BalanceCheck: soil balance error nstep = 1 point = 2 imbalance =************ W/m2'
I want to know the possible causes of these problems.
In addition, I think I should modify more files. For example, I don't know how the newly added variables of'geogrid' are transferred to the land mode, but I also need to modify the corresponding files?
What I currently know is that'module_sf_clm.F' has variables such as'sand' and'clay', which are related to my new parameterization scheme, so I think I can use them to find out how to pass variables. But I did not find more useful parts with'sand' and'clay' in the related files, and they are not defined in'Registry.EM_COMMON', I wonder if they were transformed from'sandfrac' and'clayfrac'?
Thanks for any help!
I try to add new variables, such as rock, to the clm mode of wrf, and modify the corresponding parameterization scheme. At present I have added new variables to'geogrid' and modified the following files:
Registry.EM_COMMON
module_first_rk_step_part1.F
module_sf_clm.F
module_surface_driver.F
The recompilation was successful, but there was a problem with'wrf.exe', and the error message:'Segmentation fault-invalid memory reference.'
Display in rsl.out:'BalanceCheck: soil balance error nstep = 1 point = 2 imbalance =************ W/m2'
I want to know the possible causes of these problems.
In addition, I think I should modify more files. For example, I don't know how the newly added variables of'geogrid' are transferred to the land mode, but I also need to modify the corresponding files?
What I currently know is that'module_sf_clm.F' has variables such as'sand' and'clay', which are related to my new parameterization scheme, so I think I can use them to find out how to pass variables. But I did not find more useful parts with'sand' and'clay' in the related files, and they are not defined in'Registry.EM_COMMON', I wonder if they were transformed from'sandfrac' and'clayfrac'?
Thanks for any help!