Hi JMH
Thanks for this, however there is still something going wrong that I am having trouble figuring out. I ran a simple case where I tried to impose a surface elevation of 0.5m on all liquid boundary nodes with the following code: (NOTE: I obtained the total number of boundary nodes in the domain manually from the cli file = 5364, and ZF((NBOR(K_DC))) is the bathymetry at each point)
IF (NCSIZE.GT.0) THEN
DO K_DC=1,5364
DO KK=1,NPTFR
IF(BOUNDARY_COLOUR%I(KK).EQ.NBOR(K_DC)) THEN
!Print *, NBOR(K_DC)
HBOR(KK)=0.5-ZF((NBOR(K_DC)))
END IF
END DO
END DO
ELSE
DO K_DC=1,NPTFR
HBOR(K_DC)=0.5
END DO
END IF
The result gives incorrect values of surface elevation, where initially the majority of the liquid boundary has surface elevation = 0m and a small section has surface elevation of around -1000m. I cant figure out where I am going wrong to allow the liquid nodes to be assigned the wrong values, any help would be much appreciated.
Cheers
Danny