Hello all.
I actually have a problem with declaration of variables in BORD3d.
I'm implementing this subroutine in order to account for heat exchange with air and I'm interested in giving to subroutine SHORTRAD the sea surface temperature (i.e. TEMP_SW) obtained in the calculation.
I added in the code the following lines:
DOUBLE PRECISION, DIMENSION(:),ALLOCATABLE::TEMP_SW
SAVE
...
ALLOCATE TEMP_SW(NPOIN2)
DO IPOIN2=1,NPOIN2
TEMP_SW(IPOIN2)=TA%ADR(ITEMP)%P%R(NPOIN3-NPOIN2+IPOIN2)
CALL SHORTRAD
&(TEMP_SW(IPOIN2),...)
ENDDO
I also tried to comment the call to the subroutine, but I always obtained Segmentation Fault -invalid memory reference error
.
Any help will be very grateful and precious.
Regards
G