Hi,
I am a big friend of defining rigid bed in the selafin file.
In your case you have to ensure that your geometry file and your txt files with the IDs are fit together...
we use the following procedure:
1) definition of a "RIGID BED" variable in the gaia geometry file
2) reading this variable in temporary variable T1 in user_bed_init.f
...
USE DECLARATIONS_GAIA, ONLY: AVA0,SED_THICK,GAI_FILES,GAIGEO,T1,
& MESH,ZF
...
INTEGER IERR, RECORD, I
DOUBLE PRECISION BID
...
RECORD = 0
BID = 0.D0
CALL FIND_VARIABLE(GAI_FILES(GAIGEO)%FMT,GAI_FILES(GAIGEO)%LU,
& 'RIGID BED ',T1%R, MESH%NPOIN,IERR,
& RECORD=RECORD,TIME_RECORD=BID)
3) calculating bed thickness by bottom - rigid bed in user_bed_init.f
ESTRATUM(ISTRAT,IPOIN) = MAX(ZF%R(IPOIN)-T1%R(IPOIN), 0.D0)
This procedure works fine for our applications.
If you want to have IDs instead of the rigid bed, you can save them in the selafin file. Of course the calculation of the ESTRATUM would be different then.
Best regards,
Rebekka