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

in #9: CCLM

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

  @ulrichschättler in #29da6e0

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

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