Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 2012rev692 #15

Merged
merged 8 commits into from
Nov 29, 2023
Merged

Update to 2012rev692 #15

merged 8 commits into from
Nov 29, 2023

Conversation

crazyzlj
Copy link
Owner

No description provided.

main.f - date change of revision;

The following changes were made to fix the rooting depth issue that was found in the HAWQS simulations.
(Email notes: We found that the limitation (example 2000.0 printed in the ‘input.std’ file when it was actually 2030.0 in the *.sol file) was coming from the ‘rdmx’ (max rooting depth; input in meters) in ‘plants.plt’.
Jeff wasn’t satisfied with the coding of this and has made a few changes in the SWAT code.

plantop.f -
These statements were commented:
!nly = sol_nly(j)
!sol_zmx(ihru) = sol_z(nly,j)
!plt_zmx = 1000. * rdmx(idplt(j))
!sol_zmx(ihru) = Min(sol_zmx(ihru),plt_zmx)

readsol.f -
These statements were comments:
!if (sol_zmx(ihru) <= 0.001) sol_zmx(ihru) = sol_z(nly,ihru)
!plt_zmx = 0.
!if (idplt(ihru) > 0) then
! if (idc(idplt(ihru)) > 0) then
! plt_zmx = 1000. * rdmx(idplt(ihru))
! end if
!end if
!if (sol_zmx(ihru) > 1. .and. plt_zmx > 1.) then
! sol_zmx(ihru) = Min(sol_zmx(ihru),plt_zmx)
!else
...
! sol_zmx(ihru) = Max(sol_zmx(ihru),plt_zmx)
!end if

swu.f - This whole section of code edited for the root depth problem;
real :: rdmax
...
if (idplt(j) > 0) then
rdmax = min (sol_zmx(j), 1000. * rdmx(idplt(j)))
else
rdmax = sol_zmx(j)
end if
...
sol_rd = 2.5 * phuacc(j) * rdmax
if (sol_rd > rdmax) sol_rd = rdmax
...
sol_rd = rdmax

routres.f - commented line change - mispelled reservoir;

Version 691

Summary of changes:
main.f - date of version change;

subbasin.f - change in computing the pet_day/ppet variable:

surface.f - correction in the argument in the following line (k should have been kk);

old: if (hrnopcp(sb,k) > 96) then ! four days
new: if (hrnopcp(sb,kk) > 96) then ! four days

Version 690

This version contains all the suggestions Doctor Fortran suggested
when Srin's staff found that the debug and release versions of
the model were not matching. The main culprit was with the EXPO
function, which was deleted and recoded with the EXP function. (NS - emails including subject 'Intel Fortran Compiler Optimization Difficulties' for more information and lists on suggestions).

allocate_parms.f - PPET for tropical growth added (Rev 689)

The following subroutines were edited to remove the EXPO function and an additional check was included in each occurrence (see notes):
alph.f
eiusle.f
etact.f
pgenhr.f
pkq.f

command.f - the input variable added in the ‘basins.bsn’ file for Srini’s simulations to read in previous run that SAVEed daily output in the fig.fig file.
input code variable name is : ISUB_SAV and if == 0, the model executes the subbasin command in fig.fig. If ISUB_SAV ==1, it does not.

hruallo.f - extended the number of management operations in the *.mgt file from 1000 to 2000;

modparm.f - added ISUB_SAV as integer;
deleted the function expo source code;

readbsn.f - added the read for new input variable in 'basins.bsn' file named ISUB_SAV; default == 0;

readfig.f - edited to be able to have unlimited save commands in the fig.fig file;
The unit numbers had to be changed to prevent affecting other files;

save.f - edit for unlimited number of save commands in fig.fig; previous limit was 10 commands;

virtual.f - changed function amax1 to max

    surqno3(j) = max(1.d-12,surqno3(j))
    latno3(j) = max(1.d-12,latno3(j))
    no3gw(j) = max(1.d-12,no3gw(j))
    surqsolp(j) = max(1.d-12,surqsolp(j))
    minpgw(j) = max(1.d-12,minpgw(j))
    sedorgn(j) = max(1.d-12,sedorgn(j))
    sedorgp(j) = max(1.d-12,sedorgp(j))
    sedminpa(j) = max(1.d-12,sedminpa(j))
    sedminps(j) = max(1.d-12,sedminps(j))
@crazyzlj crazyzlj merged commit 29c504b into master Nov 29, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant