I need to prescribe the wave condition (HM0, TP, DIR) at the open boundary nodes (LIFBOR = 5) using a modified LIMWAC (newmeanWAVE.f) subroutine and an ascii file containing the datat at a hourly timestep (boundaryWaves_meanPeakDirection.dat). This triplet is then replicated to the liquid nodes, and a call to SPEINI is made to compute the directional variance spectrum.
However, an inevitable "Segmentation fault - invalid memory reference" occurs...
Please see attached file (out).
Could anyone provide a tip on how to resolve this issue?
Kind regards,
Mourad