You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mathomp4 Hi and sorry for the late reply. CLAW should in principle add the corresponding variable as a parameter to the subroutine call. Let me check the example to see if something is missing or out of date.
@mathomp4 I checked again the example from the documentation and on my side nproma is correctly inserted.
Are you using the latest version of the CLAW Compiler? (2.0.1)
PROGRAM model
USE mo_column , ONLY: compute_column
REAL :: q ( 1 : 20 , 1 : 60 )
REAL :: t ( 1 : 20 , 1 : 60 )
INTEGER :: nproma
INTEGER :: nz
INTEGER :: p
nproma = 20
nz = 60
DO p = 1 , nproma , 1
q ( p , 1 ) = 0.0
t ( p , 1 ) = 0.0
END DO
CALL compute_column ( nz , q ( : , : ) , t ( : , : ) , nproma = nproma )
PRINT * , sum ( q )
PRINT * , sum ( t )
END PROGRAM model
Now that I can build Claw (see #573), I decided to try out the
mo_column
code from the documentation using OpenMP transformation.I can build and run the "before" case:
But when I try the transformed case:
This is trivial to fix (add
, nproma
) to the call and when you do:I was just wondering: is this expected? Or should Claw insert the
nproma
for you? (Just want to make sure my Claw is working as expected.)The text was updated successfully, but these errors were encountered: