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

V1.4 bugs in some Fortran compiler in Hitachi SR16000 #14

Open
GoogleCodeExporter opened this issue Feb 29, 2016 · 0 comments
Open

V1.4 bugs in some Fortran compiler in Hitachi SR16000 #14

GoogleCodeExporter opened this issue Feb 29, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
Reported by T. Koshiro

> Now I'm trying to implement COSP v1.4 into our model, MRI-CGCM3. I'd
> like to report some errors I got in my environment. I hope it helps
> improve the next release.
> 
> 1) My F90 compiler (Optimizing FORTRAN90 compiler on Hitachi SR16000)
>    complains when a variable name exceeds 31 characters. So I changed
>    the variable names as follows:
> 
>    nominalPressureHistogramBoundaries -> 
> nominalPresHistogramBoundaries
>    Optical_Thickness_Total_MeanLog10 -> Opt_Thickness_Total_MeanLog10
>    Optical_Thickness_Water_MeanLog10 -> Opt_Thickness_Water_MeanLog10
>    Optical_Thickness_vs_Cloud_Top_Pressure -> 
> Opt_Thickness_vs_Cloud_Top_Pres
>    (in MODIS_simulator/modis_simulator.F90, cosp_modis_simulator.F90,
>     cosp_simulator.F90)
> 
>    RADAR_SIM_MICROPHYSICS_SCHEME_NAME -> 
> RADAR_SIM_MICROPHYS_SCHEME_NAME
>    RADAR_SIM_UPDATE_scale_LUTs_flag -> RADAR_SIM_UPDAT_scale_LUTs_flag
>    (in cosp_constants.F90, cosp_types.F90)
> 
> 
> 2) I got compile errors when the line feed characters of the source
>    file are CR+LF. So I changed them to LF in the following files
>    (This may not be exhaustive; all files had better to be checked,
>    just in case):
> 
>    cosp_types.F90
>    cosp_utils.F90
>    llnl/cosp_radar.F90
>    quickbeam/format_input.f90
> 
> 
> 3) For my compiler, function calls cannot be nested. So I rewrote Line
>    485 in MODIS_simulator/modis_simulator.F90 as follows:
> 
>    integer, dimension(size(phase, 1)) :: count_cloudMask
> 
>    ...
> 
>    count_cloudMask = count(cloudMask, dim = 2)
>    Cloud_Top_Pressure_Total_Mean =                         &
>        sum(cloud_top_pressure, mask = cloudMask, dim = 2)  &
>        / max(1, count_cloudMask)
> 

Original issue reported on code.google.com by [email protected] on 12 Mar 2014 at 3:42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant