an issue when running regional climate projections on Mistral – in #9: CCLM

in #9: CCLM

<p> Hello Delei <br/> this sounds like something is going wrong in subroutine get_utc_date (in module utilities.f90), which computes the actual time: This subroutine defines a special integer, which has to be a long integer: quoting from the code: </p> <p> <pre><br/> ! And for computing the amount of seconds of the whole forecast time,<br/> ! an 8-Byte <span class="caps">INTEGER</span> has to be used. Otherwise the computation fails after<br/> ! approx. 68 years!!</pre> </p> <p> <span class="caps"> INTEGER </span> ( <span class="caps"> KIND </span> =int_dp) :: insec <br/> </p> <p> And from 2005 to 2073, these are just 68 years! </p> <p> The parameter int_dp is defined in data_parameters.f90 with <br/> <pre> int_dp = <span class="caps">SELECTED</span>_INT_KIND (12), &amp;</pre> </p> <p> <br/> This worked on all machines and compilers up to now. Maybe for Mistral and the compiler you are using you should try a higher number than 12. You could try with 18. Then you have to recompile the model! </p> <p> Ciao <br/> Uli </p>

  @ulrichschättler in #29da6e0

<p> Hello Delei <br/> this sounds like something is going wrong in subroutine get_utc_date (in module utilities.f90), which computes the actual time: This subroutine defines a special integer, which has to be a long integer: quoting from the code: </p> <p> <pre><br/> ! And for computing the amount of seconds of the whole forecast time,<br/> ! an 8-Byte <span class="caps">INTEGER</span> has to be used. Otherwise the computation fails after<br/> ! approx. 68 years!!</pre> </p> <p> <span class="caps"> INTEGER </span> ( <span class="caps"> KIND </span> =int_dp) :: insec <br/> </p> <p> And from 2005 to 2073, these are just 68 years! </p> <p> The parameter int_dp is defined in data_parameters.f90 with <br/> <pre> int_dp = <span class="caps">SELECTED</span>_INT_KIND (12), &amp;</pre> </p> <p> <br/> This worked on all machines and compilers up to now. Maybe for Mistral and the compiler you are using you should try a higher number than 12. You could try with 18. Then you have to recompile the model! </p> <p> Ciao <br/> Uli </p>

Hello Delei
this sounds like something is going wrong in subroutine get_utc_date (in module utilities.f90), which computes the actual time: This subroutine defines a special integer, which has to be a long integer: quoting from the code:


! And for computing the amount of seconds of the whole forecast time,
! an 8-Byte INTEGER has to be used. Otherwise the computation fails after
! approx. 68 years!!

INTEGER ( KIND =int_dp) :: insec

And from 2005 to 2073, these are just 68 years!

The parameter int_dp is defined in data_parameters.f90 with

       int_dp    = SELECTED_INT_KIND (12),                            &


This worked on all machines and compilers up to now. Maybe for Mistral and the compiler you are using you should try a higher number than 12. You could try with 18. Then you have to recompile the model!

Ciao
Uli