Skip to content

Parameters Reference

Complete reference of all input.txt parameters. All parameters have sensible defaults — only override what you need.

For boundary condition types, see Boundary Conditions. For external file formats, see External Input Files.

Two exclusive modes: if mesh_name is set, the Gmsh file is read and all Cartesian parameters are ignored.

ParameterDefaultDescription
mesh_namenullGmsh .msh file; if set, Cartesian parameters below are unused
nx, ny101Cartesian mesh cell counts
lx, ly1.Cartesian mesh physical dimensions (m)
bc_N/S/W/EwallBoundary condition per side
mesh_typebasicCartesian mesh variant (only basic currently supported)
part_stratseqMesh partitioning strategy (seq = sequential)

time_format controls how dates and durations are interpreted:

time_formatBehavior
classic (default)No calendar. Duration set by simu_time or ts (seconds)
julianstart_date and end_date are Julian Day Numbers
julian_cnesCNES Julian Days (epoch: 1950-01-01)
gregorianstart_date and end_date are strings "YYYY-MM-DDThh:mm:ss"
ParameterDefaultDescription
time_formatclassicSee table above
simu_timenullDuration: "N seconds/minutes/hours/days"
start_datenullStart date (format depends on time_format)
end_datenullEnd date (optional; if set, overrides simu_time)
ts0.Fallback duration in seconds when simu_time = null
nt0Fixed number of time steps (alternative to simu_time)
cfl0.5CFL number (adaptive time step)
dt-1.Fixed time step in seconds (overrides CFL if > 0)
adapt_dt1Adaptive time step: 1=on, 0=off
ParameterDefaultDescription
temp_scheme1Temporal scheme: euler/1, rk2/2, rk3/3
spatial_schemelmSpatial scheme: low_mach/lm, lw, low_mach_dmp_rt/lm_dmp_rt, hllc, rusanov/r, rusanov_twisted/rt
spatial_order1Order of accuracy: 1=first order, 2=second order (MUSCL)
nb_level5Cells used for two-scheme interpolation near discontinuities
bc_controlfullLow-order scheme at boundaries: no/none, wall, or full
limit_musclhVariable used by the MUSCL limiter
gamma0.5Low-Mach stabilization constant (applied as gamma*g)
alpha0.5Low-Mach stabilization constant (applied as 2*alpha*g)
hcut0.1Wet/dry threshold (m): scheme switches to dissipative below this depth
ParameterDefaultDescription
w_tecplot0Tecplot output: 5-digit flag (digit 1: 0=off, 1=on, 2=original; digits 2–5: lon/lat, friction, forcing, interp coef)
w_vtk0VTK output: 5-digit flag (digit 1: 0=off, 1=on; digits 2–5: same as above)
w_bin0Binary output: 5-digit flag
w_python0Python output flag
w_gnuplot0Gnuplot output flag
w_exact0Write exact/analytical solution fields
w_norm0Compute and write error norms against exact solution
w_post0Post-treatment: >0=write volume, max velocity, kinetic/potential/total energy at interval dtp (CSV + Tecplot)
dt_tecplotnullTecplot write interval (formatted string)
dt_vtknullVTK write interval (formatted string)
dt_binarynullBinary write interval (formatted string)
dt_restartnullRestart file write interval (formatted string)
dtw-1.Tecplot and VTK write interval in seconds (fallback)
dtb-1.Binary write interval in seconds (fallback)
dtrst-1.Restart write interval in seconds (fallback)
dtp-1.Post-treatment diagnostic interval in seconds
verbose1Terminal verbosity: 0=quiet, higher=more
ParameterDefaultDescription
restart00=cold start, 1=restart from restart.bin
ParameterDefaultDescription
bathy_in10=flat bottom, 1=from m_user_data.f90, 2=from external file regional.depth-ele.a
bathy_sgn-1.Sign convention: -1 means depth is positive downward
ParameterDefaultDescription
friction_model00=none, 1=oceanic quadratic cb, 2=oceanic with z0 (log law), 3=Manning/Strickler
friction_scheme00=explicit, 1=implicit, 2=semi-implicit
cb / cb_min / cb_max2.5e-3 / 1e-4 / 0.1Quadratic friction coefficient (uniform; min/max when loading from file)
cl / cl_min / cl_max0. / 0. / 1e-2Linear friction coefficient
z01e-3Roughness length (m), used by model 2
n / n_min / n_max0.02 / 1e-3 / 0.1Manning coefficient, used by model 3
karman0.41Von Kármán constant (used in z0 log-law)
ParameterDefaultDescription
coriolis00=none, 1=from latitude file (regional.grid-node.a), 2=beta-plane
f09.0541e-5Coriolis parameter (s⁻¹), used by model 2
beta1.7876e-11Beta-plane gradient (m⁻¹s⁻¹), used by model 2
theta38.5Reference latitude (°), used by model 2
omega7.2722e-5Earth rotation rate (rad/s), used by model 2
earth_r6367442.76Earth radius (m), used by model 2
ParameterDefaultDescription
patm_forcing00=off, 1=pressure gradient applied to velocity, 2=same + inverse barometer correction at open boundaries
patm_ref_var0Reference pressure: 0=constant patm_ref_mean, 1=spatially variable from prmsl_ref.a
patm_ref_mean101325.Constant reference atmospheric pressure (Pa)
endian_forcinglittleEndianness of forcing binary files: little or big
ParameterDefaultDescription
wind_forcing00=off, >0=on (reads forcing.usst and forcing.vsst)
endian_forcinglittleEndianness of forcing binary files
ParameterDefaultDescription
tbf_forcing0Tidal body force: 0=off, >0=on (computed analytically from tide.list)
dt_tbf600.Update interval for tidal body force (s)
tide_mean_ssh_dt600.Time step for mean-SSH tidal averaging (s)
tide_is_ramp1Tidal ramp-up: 1=on, 0=off
tide_time_ramp3600.Duration of tidal ramp-up (s)
endian_sshtlittleEndianness of sshT boundary files
ParameterDefaultDescription
mpi_choice3Communication strategy: 0=library default, 1=local non-blocking, 2=persistent, 3=persistent with additional optimizations
ParameterDefaultDescription
g9.81Gravitational acceleration (m/s²)
heps1e-13Minimum water depth threshold
profile-1Profiling level: -1=off, 1=MPI wait-all timer, 2=write to file, 3=both
time_file_start0.Simulation time (s) at which timer profiling starts
nb_file_it100Number of time steps for which timer output is written

!--- Mesh ---
mesh_name = your_mesh.msh
part_strat = seq
!--- Schemes ---
temp_scheme = euler
spatial_scheme = lm
spatial_order = 1
adapt_dt = 1
cfl = 0.5
gamma = 0.5
alpha = 0.5
hcut = 0.1
nb_level = 3
!--- Forcings ---
tbf_forcing = 0
wind_forcing = 0
patm_forcing = 0
!--- Time ---
time_format = julian_cnes
start_date = 22548
simu_time = 5 days
!--- Bathymetry ---
bathy_in = 0
g = 9.81
heps = 1.d-13
!--- Initial state ---
restart = 0
!--- Friction ---
friction_model = 0
friction_scheme = 0
cb = 2.5d-3
cb_min = 1.d-4
cb_max = 1.d-2
cl = 0.
cl_min = 0.
cl_max = 1.d-3
z0 = 1.d-3
n = 0.05
karman = 0.41
!--- Coriolis ---
coriolis = 2
f0 = 9.0541d-05
beta = 1.7876d-11
theta = 38.5
omega = 7.2722052166d-05
earth_r = 6367442.76
!--- Output ---
dtw = 1.d15
dtp = 1.d15
dtb = -1.
w_tecplot = 0
w_vtk = 0
w_bin = 0
w_post = 0
verbose = 1
!--- MPI ---
mpi_choice = 3
!--- Mesh ---
mesh_type = basic
part_strat = seq
nx = 101
ny = 101
lx = 1.
ly = 1.
bc_N = wall
bc_S = wall
bc_W = wall
bc_E = wall
!--- Schemes ---
temp_scheme = euler
spatial_scheme = lm
spatial_order = 1
adapt_dt = 1
cfl = 0.5
gamma = 0.5
alpha = 0.5
hcut = 0.1
nb_level = 3
!--- Forcings ---
tbf_forcing = 0
wind_forcing = 0
patm_forcing = 0
!--- Time ---
time_format = classic
ts = 86400.d0
!--- Bathymetry ---
bathy_in = 0
g = 9.81
heps = 1.d-13
!--- Initial state ---
restart = 0
!--- Friction ---
friction_model = 0
friction_scheme = 0
cb = 2.5d-3
cb_min = 1.d-4
cb_max = 1.d-2
cl = 0.
cl_min = 0.
cl_max = 1.d-3
z0 = 1.d-3
n = 0.05
karman = 0.41
!--- Coriolis ---
coriolis = 2
f0 = 9.0541d-05
beta = 1.7876d-11
theta = 38.5
omega = 7.2722052166d-05
earth_r = 6367442.76
!--- Output ---
dtw = 1.d15
dtp = 1.d15
dtb = -1.
w_tecplot = 0
w_vtk = 0
w_bin = 0
w_post = 0
verbose = 1
!--- MPI ---
mpi_choice = 3