Problem about Inlet_test

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
liangliang
Posts: 61
Joined: Mon Jul 20, 2009 2:41 pm
Location: Port And Costal Engineering Laboratory

Problem about Inlet_test

#1 Unread post by liangliang »

I want to couple ROMS with swan , so I do this svn checkout https://www.myroms.org/svn/src/test/inlet_test MyTest .
I find there is no #define SWAN_COUPLING in inlet_test.h ,but I can find #define SWAN_COUPLING in My folder /trunk/ROMS/Include/inlet_test.h .
What is the difference between them ? If I want to couple ROMS with swan ,which *.h should I refer to ?
If I want to use /trunk/ROMS/Include/inlet_test.h ,where I can get ocean_inlet_test.in , coupling_inlet_test.in , swan_inlet_test.in and other data ?
Thank you !

1) https://www.myroms.org/svn/src/test/inlet_test
/*
** svn $Id: inlet_test.h 646 2013-01-22 23:35:19Z arango $
*******************************************************************************
** Copyright (c) 2002-2013 The ROMS/TOMS Group **
** Licensed under a MIT/X style license **
** See License_ROMS.txt **
*******************************************************************************
**
** Options for Inlet Test Case, waves-ocean (SWAN/ROMS) two-way coupling.
**
** Application flag: INLET_TEST
** Input script: ocean_inlet_test.in
** coupling_inlet_test.in
** sediment_inlet_test.in
*/

#define UV_VIS2
#define MIX_S_UV
#define MASKING
#define UV_ADV
#define TS_MPDATA
#define DJ_GRADPS
#define SOLVE3D
#define SPLINES

#define ANA_INITIAL
#define ANA_SMFLUX
#define ANA_FSOBC
#define ANA_M2OBC

#ifdef SSW_BBL
# define SSW_CALC_ZNOT
#endif

#ifdef SOLVE3D

# define GLS_MIXING
# ifdef GLS_MIXING
# define KANTHA_CLAYSON
# define N2S2_HORAVG
# endif

# define SEDIMENT
# ifdef SEDIMENT
# define SUSPLOAD
# define SED_MORPH
# endif
# if defined SEDIMENT || defined SG_BBL || defined MB_BBL || defined SSW_BBL
# define ANA_SEDIMENT
# endif

# define ANA_STFLUX
# define ANA_SSFLUX
# define ANA_BPFLUX
# define ANA_BTFLUX
# define ANA_BSFLUX
# define ANA_SPFLUX
# define ANA_SRFLUX
#endif


2)/trunk/ROMS/Include/inlet_test.h
/*
** svn $Id: inlet_test.h 585 2012-01-03 18:44:28Z arango $
*******************************************************************************
** Copyright (c) 2002-2012 The ROMS/TOMS Group **
** Licensed under a MIT/X style license **
** See License_ROMS.txt **
*******************************************************************************
**
** Options for Inlet Test Case, waves-ocean (SWAN/ROMS) two-way coupling.
**
** Application flag: INLET_TEST
** Input script: ocean_inlet_test.in
** coupling_inlet_test.in
** sediment_inlet_test.in
*/

#define UV_VIS2
#define MIX_S_UV
#undef ANA_GRID
#define MASKING
#define UV_ADV
#undef UV_COR
#define TS_MPDATA
#define DJ_GRADPS
#define FSOBC_REDUCED
#define SOLVE3D
#define SPLINES
#define SWAN_COUPLING
#define NEARSHORE_MELLOR08
#define ANA_INITIAL
#define ANA_SMFLUX
#define ANA_FSOBC
#define ANA_M2OBC

#ifdef SWAN_COUPLING
# define MCT_LIB
#endif

/* define only one of the following 5 */
#undef UV_LOGDRAG
#undef UV_QDRAG
#undef MB_BBL
#undef SG_BBL
#define SSW_BBL
#ifdef SSW_BBL
# define SSW_CALC_ZNOT
#endif

#ifdef SOLVE3D
# define GLS_MIXING
# ifdef GLS_MIXING
# define KANTHA_CLAYSON
# define N2S2_HORAVG
# endif
# define SEDIMENT
# ifdef SEDIMENT
# define SUSPLOAD
# undef BEDLOAD_SOULSBY
# undef BEDLOAD_MPM
# define SED_MORPH
# endif
# if defined SEDIMENT || defined SG_BBL || defined MB_BBL || defined SSW_BBL
# define ANA_SEDIMENT
# endif
# define ANA_STFLUX
# define ANA_SSFLUX
# define ANA_BPFLUX
# define ANA_BTFLUX
# define ANA_BSFLUX
# define ANA_SPFLUX
# define ANA_SRFLUX
#endif

jcwarner
Posts: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: Problem about Inlet_test

#2 Unread post by jcwarner »

The model coupling has been vastly expanded and updated on a different site. I strongly recommend users that are intending to conduct scenarios with model coupling use our COAWST system, as we have implemented vortex force approach for wave-current interaction, updated SWAN to 4091A, coupled wrf, etc. If you are interested please send me an email at jcwarner@usgs.gov

Gabriel_Carvalho
Posts: 9
Joined: Tue Jul 05, 2011 2:47 pm
Location: Prooceano

Re: Problem about Inlet_test

#3 Unread post by Gabriel_Carvalho »

Check your build.bash file, there are some CPP flags defined there,

Best regards,
Gabriel

Post Reply