You have to prepare a data file containing the grid code values by which the elements are assigned to the coastline points before you set up the hydrodynamic simulation. The file must be a 2D unstructured data file (dfsu). The area in the data file must cover the model area and preferably match the mesh resolution in that same area. Otherwise piecewise constant interpolation is used to map the data.