Hi esepulveda26247,
The compiler should be issuing a better error message here (we have an open problem report for this, TPR#21780). Variables in OpenACC routines can’t have the “SAVE” attribute since this puts the variable in to static local storage which is not accessible from the device. Data initialized variables such as ALAM are given the SAVE attribute implicitly.
The fix is to simply initialize ALAM in the body of the routine instead of the declaration.
double precision::ALAM
ALAM = 0.20D0
CALL PYGVMD(ISET,1,X,Q2A,P2MX,ALAM,XPGA,VXPGA)
Hope this helps,
Mat