src default routines

See also Using src for source terms.

For GeoClaw, see src routine in GeoClaw.

Below are the default src library routines for Classic and AMRClaw. By default these do nothing. If you wish to specify source terms, you need to copy one of these files to your application directory and modify it as needed. Remember to change to Makefile to point to the proper version.

If you are using AMRClaw, you will also need to provide a routine src1d, see Using src1d for source terms with AMRClaw.

$CLAW/classic/src/1d/src1.f90:

System Message: WARNING/2 (/var/folders/_s/dx0xgftn3_x04rdx0_w5nq7w0000gn/T/tmplBPRI1sphinxcontrib_versioning/8b07e169f86998872fc1cf3755d1b7f4a8c40a33/doc/src_defaults.rst, line 24)

Include file u’/var/folders/_s/dx0xgftn3_x04rdx0_w5nq7w0000gn/T/tmplBPRI1sphinxcontrib_versioning/classic/src/1d/src1.f90’ not found or reading it failed

$CLAW/classic/src/2d/src2.f90:

System Message: WARNING/2 (/var/folders/_s/dx0xgftn3_x04rdx0_w5nq7w0000gn/T/tmplBPRI1sphinxcontrib_versioning/8b07e169f86998872fc1cf3755d1b7f4a8c40a33/doc/src_defaults.rst, line 30)

Include file u’/var/folders/_s/dx0xgftn3_x04rdx0_w5nq7w0000gn/T/tmplBPRI1sphinxcontrib_versioning/classic/src/2d/src2.f90’ not found or reading it failed

$CLAW/classic/src/3d/src3.f90:

System Message: WARNING/2 (/var/folders/_s/dx0xgftn3_x04rdx0_w5nq7w0000gn/T/tmplBPRI1sphinxcontrib_versioning/8b07e169f86998872fc1cf3755d1b7f4a8c40a33/doc/src_defaults.rst, line 36)

Include file u’/var/folders/_s/dx0xgftn3_x04rdx0_w5nq7w0000gn/T/tmplBPRI1sphinxcontrib_versioning/classic/src/3d/src3.f90’ not found or reading it failed

src routine in GeoClaw

In GeoClaw, there is a library routine to impose source terms for bottom friction (via a Manning term) and Coriolis terms. The topography source term is built into the Riemann solver in a manner that achieves well balancing (an ocean at rest remains at rest).

$CLAW/geoclaw/src/2d/shallow/src2.f90:

System Message: WARNING/2 (/var/folders/_s/dx0xgftn3_x04rdx0_w5nq7w0000gn/T/tmplBPRI1sphinxcontrib_versioning/8b07e169f86998872fc1cf3755d1b7f4a8c40a33/doc/src_defaults.rst, line 53)

Include file u’/var/folders/_s/dx0xgftn3_x04rdx0_w5nq7w0000gn/T/tmplBPRI1sphinxcontrib_versioning/geoclaw/src/2d/shallow/src2.f90’ not found or reading it failed