lappen7@gmail_com
New Member
hi,
I am running CCSM4 and I have implemented additional heating profiles as a tendency in the CAM routine phys_run2 located in physpkg.F90. I now have made a separate file containing these heating profiles that I would like to read in and use. My question is where is the best place to do this? I dont want to read the file in every time I enter the routine phys_run2. Can I read the file in the routine phys_init and then declare the heating with the "save" statement. If I do this, do I have to declare the heating profile variable outside the "contains" part of the routine or can I just save it in phys_init?
Is there a better way to do this, like somehow use the buffers to save and recall it? Im not sure how to do this latter approach. Any advice you can give me would be greatly appreciated. Thanks!
Cara-Lyn
I am running CCSM4 and I have implemented additional heating profiles as a tendency in the CAM routine phys_run2 located in physpkg.F90. I now have made a separate file containing these heating profiles that I would like to read in and use. My question is where is the best place to do this? I dont want to read the file in every time I enter the routine phys_run2. Can I read the file in the routine phys_init and then declare the heating with the "save" statement. If I do this, do I have to declare the heating profile variable outside the "contains" part of the routine or can I just save it in phys_init?
Is there a better way to do this, like somehow use the buffers to save and recall it? Im not sure how to do this latter approach. Any advice you can give me would be greatly appreciated. Thanks!
Cara-Lyn