Hi everyone,
Recently, in order to couple the SWAN model, I have run the inlet-test case successfully, but when I use matlab to check the output files of SWAN, such as hsig.mat, fric.mat and so on , I found cannot open them. The attachment are my .in , log ,print file and hsig.mat. Can you tell me the reason? if there are some thing wrong with my swan_inlet_test.in. Thanks very much!
output files of SWAN model
-
- Posts: 50
- Joined: Tue Mar 01, 2016 1:38 am
- Location: the Ocean University of China
output files of SWAN model
- Attachments
-
- inlet.zip
- (2.24 MiB) Downloaded 559 times
Re: output files of SWAN model
are you using Rutgers version of swan coupling or COAWST?
In the past, this error was due to a byte offset needed for matlab, and it depending on the compiler. So we have added some flags , such as
in Compilers/CYGWIN-ifort.mk
ifdef USE_SWAN
FFLAGS += /noextend_source -assume:byterecl
endif
what compiler are you using?
-j
In the past, this error was due to a byte offset needed for matlab, and it depending on the compiler. So we have added some flags , such as
in Compilers/CYGWIN-ifort.mk
ifdef USE_SWAN
FFLAGS += /noextend_source -assume:byterecl
endif
what compiler are you using?
-j
-
- Posts: 50
- Joined: Tue Mar 01, 2016 1:38 am
- Location: the Ocean University of China
Re: output files of SWAN model
Thanks John, I use the Linux-ifort.mk, Could you mind show me how to add the flags?
- Attachments
-
- 捕获2.PNG (31.74 KiB) Viewed 14723 times
-
- Posts: 50
- Joined: Tue Mar 01, 2016 1:38 am
- Location: the Ocean University of China
Re: output files of SWAN model
Sorry, I forget to say that the ROMS I use is Rutgers version of swan coupling.
Re: output files of SWAN model
to the Compilers/Linux-ifort.mk, you will need to add
ifdef USE_SWAN
FFLAGS += -assume byterecl
endif
i would suggest that if you intend on doing a lot of research with swan+roms, that you switch to coawst. We have updated swan to more recent versions, include vortex force wave effects on currents, have swan with grid refinement, coupling with refinement to roms, etc etc. We are up to date with Rutgers version of roms, so there is no difference there.
-john
ifdef USE_SWAN
FFLAGS += -assume byterecl
endif
i would suggest that if you intend on doing a lot of research with swan+roms, that you switch to coawst. We have updated swan to more recent versions, include vortex force wave effects on currents, have swan with grid refinement, coupling with refinement to roms, etc etc. We are up to date with Rutgers version of roms, so there is no difference there.
-john
-
- Posts: 50
- Joined: Tue Mar 01, 2016 1:38 am
- Location: the Ocean University of China
Re: output files of SWAN model
Thanks very much John, I sloved the problem. change nothing and just add what you said. I sent an application letter about COAWST to your E-mail Address, MY name is Rocky. Thanks again!
-
- Posts: 50
- Joined: Tue Mar 01, 2016 1:38 am
- Location: the Ocean University of China
Re: output files of SWAN model
Hi Johnjcwarner wrote: ↑Fri Oct 21, 2016 12:20 pm to the Compilers/Linux-ifort.mk, you will need to add
ifdef USE_SWAN
FFLAGS += -assume byterecl
endif
i would suggest that if you intend on doing a lot of research with swan+roms, that you switch to coawst. We have updated swan to more recent versions, include vortex force wave effects on currents, have swan with grid refinement, coupling with refinement to roms, etc etc. We are up to date with Rutgers version of roms, so there is no difference there.
-john
This problem occurs again when I run the Inlet_test case of COAWST. The MAT result output by SWAN cannot be opened using MATLAB. This time, I use the gfortran compiler. What should I do to modify linux-gfortran.mk??
Thanks
chenghao
- Attachments
-
- 770E8DEF18D6EBDFD81E62F37A788900.png (8.85 KiB) Viewed 11175 times
Re: output files of SWAN model
i think for some versions of gfortran you need to add
FFLAGS += -fconvert=big-endian
see if that works.
what do you get for
gfortran --version
FFLAGS += -fconvert=big-endian
see if that works.
what do you get for
gfortran --version