<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Greetings, <div class=""><br class=""></div><div class="">I had been working on ts/tutorials/ex11.c as part of my master’s thesis. </div><div class=""><br class=""></div><div class="">In ex11.c, there is a 2D Shallow Water Model. I want to modify the model by adding a source term to the model. This source term would factor in the effects of bathymetry or bed elevation in addition to water height. </div><div class=""><br class=""></div><div class="">I know how I will be able to achieve this if just use TSSetRHSFunction(). However ex11.c makes use of the Riemann Solver for the computation fluxes at the interfaces (therefore, it uses <span style="color: rgb(169, 183, 198); font-family: Menlo; font-size: 9pt; background-color: rgb(43, 43, 43);" class="">DMTSSetRHSFunctionLocal(dm</span><span style="font-family: Menlo; font-size: 9pt; background-color: rgb(43, 43, 43); color: rgb(204, 120, 50);" class="">, </span><span style="color: rgb(169, 183, 198); font-family: Menlo; font-size: 9pt; background-color: rgb(43, 43, 43);" class="">DMPlexTSComputeRHSFunctionFVM</span><span style="font-family: Menlo; font-size: 9pt; background-color: rgb(43, 43, 43); color: rgb(204, 120, 50);" class="">, </span><span style="color: rgb(169, 183, 198); font-family: Menlo; font-size: 9pt; background-color: rgb(43, 43, 43);" class="">user)</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""> </span>). </div><div class=""><br class=""></div><div class="">Is there a routine that allows me to <b class="">add</b> a source term <b class="">for every cell</b> to the RHS function? </div><div class=""><br class=""></div><div class="">Thank you in advance! </div><div class=""><br class=""></div><div class="">Regards, </div><div class=""><br class=""></div><div class="">Mukkund </div></body></html>