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

10_07_2024 source code #15

Merged
merged 6 commits into from
Oct 8, 2024
Merged

10_07_2024 source code #15

merged 6 commits into from
Oct 8, 2024

Conversation

tugraskan
Copy link
Collaborator

10_07_2024 source code

- Added new variables and cases in `actions.f90` for improved plant and grass management.
- Removed and re-added unused variables in `basin_module.f90` with updated comments.
- Updated `cal_conditions.f90` and `cal_parm_select.f90` with new cases and logic for parameter handling.
- Enhanced calibration logic in `calsoft_*` files for better ET and water yield management.
- Modified calculations and logic in `ch_*` files for improved water quality and sediment handling.
- Updated `channel_control.f90` and `climate_control.f90` for better flow and climate data handling.
- Refactored `conditional_module.f90` and `conditions.f90` for improved condition checks and logic.
- Enhanced `constituent_mass_module.f90` and `dtbl_scen_read.f90` for better data allocation and handling.
- Improved `hru_*` files for better HRU management and output.
- Refactored `hyd_*` files for better allocation and initialization of variables.
- Updated `mgt_*` files for better management of irrigation and plant growth.
- Enhanced `nut_solp.f90` and `object_read_output.f90` for better nutrient and output handling.
- Improved `organic_mineral_mass_module.f90` and `output_landscape_*` files for better mass and output management.
- Refactored `pathogen_init.f90` and `pesticide_init.f90` for better pathogen and pesticide handling.
- Enhanced `pl_*` files for better plant growth and partitioning logic.
- Updated `recall_read.f90` and `res_*` files for better reservoir and nutrient management.
- Refactored `sd_channel_*` files for better sediment and erosion handling.
- Improved `soil_*` files for better soil nutrient and carbon initialization.
- Updated `structure_set_parms.f90` and `swr_percmain.f90` for better parameter setting and water management.
- Enhanced `time_control.f90` for better time and land use change handling.
- Improved `wallo_demand.f90` and `water_allocation_read.f90` for better water allocation and demand handling.
- Refactored `wet_*` files for better wetland management and output.
Increase length of various character variables

Extended character variable lengths in multiple modules:
- `basin_module.f90`: `year`, `area_ha`, `yield_t` in `basin_yld_header` (+1)
- `gwflow_read.f90`: `year` in `hydsep_hdr` (+2)
- `hydrograph_module.f90`: `hd_type` in `hru_swift_header` (+1)
- `manure_allocation_module.f90`: `s2un`, `s3un` in `mallo_header_units` (+5)
- `output_landscape_module.f90`: `puptake` in `output_nutbal_header` (+1)
- `reservoir_module.f90`: `j` in `res_in` and `res_out` headers (+1)
- `soil_nutcarb_module.f90`: `mb_c` in `organic_carbon_units` (+3)
- `water_allocation_module.f90`: `rcv_typ` in `wallo_header_units` (+1)
- `water_allocation_module.f90`: `s2un`, `s3un` in `wallo_header_units` (+5)
Commented out unused format statements with `!*** tu Wunused-label:`
prefix across multiple Fortran source files. This cleanup improves
code readability and reduces potential confusion for future
maintenance. Affected files include:

- calsoft_control.f90
- ch_pathogen_output.f90
- command.f90
- cs_balance.f90
- gwflow_read.f90
- gwflow_simulate.f90
- hru_carbon_output.f90
- hru_output.f90
- hru_pathogen_output.f90
- lsreg_output.f90
- lsu_output.f90
- recall_nut.f90
- ru_output.f90
- salt_balance.f90
- salt_chem_hru.f90
- sep_biozone.f90
- sq_greenampt.f90
- surface.f90
- swift_output.f90

No changes to program functionality.
Extended the length of character variables across multiple files:
- `actions.f90`: `lu_prev` from 25 to 40.
- `cal_conditions.f90`: `chg_parm` from 16 to 25.
- `conditional_module.f90`: `option` in `actions_var` from 25 to 40.
- `gwflow_chan_read.f90`: `col_head_con` array elements from 8 to 20.
- `hydrograph_module.f90`: `flo` in `hru_swift_header_base2` from 16 to 17.
- `plant_data_module.f90`: `plts_bsn` array elements from 16 to 40.
- `plant_module.f90`:
  - `fertname` in `fertilize_future` from 35 to 40.
  - `name` in `plant_community` from 35 to 40.
  - `pl` in `plant_community` from 16 to 40.
  - `last_kill` in `plant_community` from 16 to 40.
- `soil_module.f90`: `snam` in `soil_profile` from 16 to 20.
- `time_module.f90`: `cal_sim` from 25 to 29.
The `landuse` type's `urb_ro` variable in `hru_module.f90` has been
modified to allow for longer strings, increasing its length from 16
to 40 characters. This change accommodates more detailed urban runoff
model identification.

Similarly, the `irr_src` variable in `hru_module.f90` has been
updated to increase its length from 5 to 40 characters, allowing for
more descriptive irrigation source specifications.
@tugraskan tugraskan merged commit 3c907e6 into develop Oct 8, 2024
@tugraskan tugraskan deleted the merge_10_07_2024 branch November 21, 2024 21:59
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