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

Unused code in GWD component should be removed #704

Closed
bena-nasa opened this issue Feb 14, 2023 · 0 comments · Fixed by #705
Closed

Unused code in GWD component should be removed #704

bena-nasa opened this issue Feb 14, 2023 · 0 comments · Fixed by #705
Labels

Comments

@bena-nasa
Copy link
Collaborator

I was working with a user who is trying to run GWD outside of the full GEOSgcm.x for a component testing framework. We were having an error because the resource file did not have that AGCM_GRIDNAME string in it. When I stared at this though, it seems that that entire block of code is just not used. If you search for imsize, it is never actually used so from what I can tell there is no point to this block of code.

! Get grid name to determine IMSIZE
    call MAPL_GetResource(MAPL,GRIDNAME,'AGCM_GRIDNAME:', RC=STATUS)
    VERIFY_(STATUS)
    GRIDNAME =  AdjustL(GRIDNAME)
    nn = len_trim(GRIDNAME)
    dateline = GRIDNAME(nn-1:nn)
    imchar = GRIDNAME(3:index(GRIDNAME,'x')-1)
    read(imchar,*) imsize
    if(dateline.eq.'CF') imsize = imsize*4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant