Creating an executable for Hydrus1D flow for NPD=2000

A discussion forum for old Hydrus-1D users.
Hydraus_1d_RD
Posts: 30
Joined: Thu Dec 17, 2020 10:11 pm
Location: USA

Creating an executable for Hydrus1D flow for NPD=2000

Post by Hydraus_1d_RD » Tue Mar 22, 2022 4:29 pm

Dear all, I hope my email finds you well. I have a question. For a project, I need to increase the parameter NPD (number of printing time to 2000 from the default setting of 1000). From the Hydrus 1D source code, I noted I can do this by changing NPD to 2000 on lines 54 in the file HYDRUS.FOR. However, I'm not sure how to compile all the fortran programs together to create a single executable file that I can use to run my models. Would you please let me know if you have any suggestions? Thanks!
Sincerely,

Jirka
Posts: 6247
Joined: Sat Mar 16, 2002 3:47 pm
Location: USA
Location: Riverside, CA

Re: Creating an executable for Hydrus1D flow for NPD=2000

Post by Jirka » Tue Mar 22, 2022 5:30 pm

For that, you should study/consult the user manual of the Fortran compiler that you use. J.

Hydraus_1d_RD
Posts: 30
Joined: Thu Dec 17, 2020 10:11 pm
Location: USA

Re: Creating an executable for Hydrus1D flow for NPD=2000

Post by Hydraus_1d_RD » Wed Mar 23, 2022 4:08 pm

Hi Jirka,
Thanks for your reply. I'm still having the same issue. I tried using the GNU fortran 77 compiler (v. 1999), but it gave me several error messages. Some of these messages are listed below. Is there any possibility to request your help with compiling the updated source code (I only changed the line # 54 in the HYDRUS.FOR file), as you have already done this for the other versions of the code? I'd really appreciate this favor.
Sincerely,


-----------------------------Error messages when compiling the Hydrus source code ---------------------------------
HYDRUS.for:1:
*||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||*
^
Statement at (^) begins with invalid token [info -f g77 M LEX]
HYDRUS.for:1:
*||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||*
^
Unrecognized character at (^) [info -f g77 M LEX]
HYDRUS.for:2:
* *
^
Statement at (^) begins with invalid token [info -f g77 M LEX]
HYDRUS.for:3:
* HYDRUS - Numerical model of one-dimensional variably saturated *
^
Statement at (^) begins with invalid token [info -f g77 M LEX]
HYDRUS.for:4:
* water flow, heat transport, and transport of solutes *
^
Statement at (^) begins with invalid token [info -f g77 M LEX]
HYDRUS.for:5:
* involved in sequential first-order decay reactions *
^
Statement at (^) begins with invalid token [info -f g77 M LEX]
HYDRUS.for:6:
* version 7.0 *
^
Statement at (^) begins with invalid token [info -f g77 M LEX]
HYDRUS.for:7:
* *
^

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Jirka
Posts: 6247
Joined: Sat Mar 16, 2002 3:47 pm
Location: USA
Location: Riverside, CA

Re: Creating an executable for Hydrus1D flow for NPD=2000

Post by Jirka » Wed Mar 23, 2022 5:00 pm

I’m not familiar with this compiler. I’m using Intel Fortran Compiler from Microsoft Visual Studio. J.

Hydraus_1d_RD
Posts: 30
Joined: Thu Dec 17, 2020 10:11 pm
Location: USA

Re: Creating an executable for Hydrus1D flow for NPD=2000

Post by Hydraus_1d_RD » Wed Mar 23, 2022 9:23 pm

Hi Jirka, I don't have license to that software. Would you please let me know if I may request for a favor? If yes, would you please let me know if I may request a Hydrus1D executable with NPD set to 2000? I'd really appreciate this favor.
Thanks,
Ravindra

Jirka
Posts: 6247
Joined: Sat Mar 16, 2002 3:47 pm
Location: USA
Location: Riverside, CA

Re: Creating an executable for Hydrus1D flow for NPD=2000

Post by Jirka » Wed Mar 23, 2022 10:33 pm

We may allow it in the next version of the software. J..

Hydraus_1d_RD
Posts: 30
Joined: Thu Dec 17, 2020 10:11 pm
Location: USA

Re: Creating an executable for Hydrus1D flow for NPD=2000

Post by Hydraus_1d_RD » Thu Mar 24, 2022 4:24 pm

Thank you, Jirka. If you don’t mind, would you please let me know if I may suggest another potential item to include in any new version of Hydrus-1D? If yes, at present the code has option to print out head, vol. water content, flux at node-based observation points (when considering only water flow scenario). Thus, the code prints instantaneous values of various outputs at requested print time steps. However, if one wants to compute vol. water content from top to a nodal location, i.e., a vertically integrated value, at any time, then one has to go through the mass balance.out file. It would be really nice and useful to have an option to printer either instantaneous values or/both vertically integrated values of various of program outputs.

Sincerely,

Jirka
Posts: 6247
Joined: Sat Mar 16, 2002 3:47 pm
Location: USA
Location: Riverside, CA

Re: Creating an executable for Hydrus1D flow for NPD=2000

Post by Jirka » Thu Mar 24, 2022 5:57 pm

We currently print at each time level the overall (over the entire soil profile) water storage into T_Level.out (not for different subregions). We will consider that. J.

Jirka
Posts: 6247
Joined: Sat Mar 16, 2002 3:47 pm
Location: USA
Location: Riverside, CA

Re: Creating an executable for Hydrus1D flow for NPD=2000

Post by Jirka » Thu Mar 24, 2022 5:57 pm

We currently print at each time level the overall (over the entire soil profile) water storage into T_Level.out (not for different subregions). We will consider that. J.

Hydraus_1d_RD
Posts: 30
Joined: Thu Dec 17, 2020 10:11 pm
Location: USA

Re: Creating an executable for Hydrus1D flow for NPD=2000

Post by Hydraus_1d_RD » Mon Mar 28, 2022 4:15 pm

Thank you, Jirka. I see that there is a column called Volumn in T_Level.out file that provides water volume information for the whole soil profile. I agree with you (thank you for considering my request) that a layer-by-layer water volume information in this file, if included, will be very useful too.

Sincerely,

Jirka
Posts: 6247
Joined: Sat Mar 16, 2002 3:47 pm
Location: USA
Location: Riverside, CA

Re: Creating an executable for Hydrus1D flow for NPD=2000

Post by Jirka » Mon Mar 28, 2022 5:17 pm

We will allow up to 10,000 print times in the upcoming (April 1, 2022) version 5 of HYDRUS. J.

Hydraus_1d_RD
Posts: 30
Joined: Thu Dec 17, 2020 10:11 pm
Location: USA

Re: Creating an executable for Hydrus1D flow for NPD=2000

Post by Hydraus_1d_RD » Tue Mar 29, 2022 12:01 am

Thank you, Jirka.
Sincerely,

Hydraus_1d_RD
Posts: 30
Joined: Thu Dec 17, 2020 10:11 pm
Location: USA

Re: Creating an executable for Hydrus1D flow for NPD=2000

Post by Hydraus_1d_RD » Mon Apr 04, 2022 11:43 pm

Hi Jirka,
I hope you are doing well. Would you please let me know if the version 5 of Hydrus-1D is already released?
Sincerely,


Hydraus_1d_RD
Posts: 30
Joined: Thu Dec 17, 2020 10:11 pm
Location: USA

Re: Creating an executable for Hydrus1D flow for NPD=2000

Post by Hydraus_1d_RD » Wed Apr 06, 2022 4:28 pm

Thanks for the information, Jirka. I'm wondering if there are any updates to Hydrus-1D program (that is freely available to anyone) that includes the items you mentioned in the last message (e.g., NPD=10000). Would you please let me know?

Sincerely,

Post Reply