我要评分
获取效率
正确性
完整性
易理解

Fortran Critical Hints Do Not Support Some Constant Expressions

In the hint clause of the critical instruction, some constant expressions, such as !$omp critical hint(lshift(20,5)), are not supported. The error information is as follows:

1
F90-S-0155-The parameter of the HINT clause must be a constant non-negative integer expression

Workaround: Calculate the value of lshift(20,5), which is 640, and then use !$omp critical hint(640).