Added a total electromagnetic energy diagnostic to mini-em
Created by: egphill
Total EM energy is printed to screen as a sanity check to make sure the app is running correctly. Also printing energy/dt^2 which should be approximately the same over different parameter regimes. Both metrics should increase quickly up to ten time-steps and then level out by twenty time-steps.
@trilinos/panzer
Description
Computing 1/2(epsilon||E||^2 + 1/mu||B||^2) as a response.
Motivation and Context
Anyone running the app can check the diagnostics to see if the app is running properly.
Checklist
-
My commit messages mention the appropriate GitHub issue numbers. -
My code follows the code style of the affected package(s). -
My change requires a change to the documentation. -
I have updated the documentation accordingly. -
I have read the code contribution guidelines for this project. -
I have added tests to cover my changes. -
All new and existing tests passed. -
No new compiler warnings were introduced. -
These changes break backwards compatibility.