Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convergence tool #593

Merged
merged 3 commits into from Oct 14, 2019
Merged

Convergence tool #593

merged 3 commits into from Oct 14, 2019

Conversation

zingale
Copy link
Member

@zingale zingale commented Oct 12, 2019

This cleans up the output of the RichardsonConvergence tool. By default, the latex formatting is turned off (you can turn it back on via latex=1. Also, now the column widths all line up and it removes some duplicate header. This makes the output more readable:

Level  L0 norm of Error in Each Component
-----------------------------------------------
level: 0
Warning: BoxArray lengths are not the same at level 0
                 density        2.303884e+02       3.836486   1.612736e+01
                    xmom        6.840777e+10       3.979864   4.335578e+09
                    ymom        6.840777e+10       3.979864   4.335578e+09
                    zmom        0.000000e+00   ------------   0.000000e+00
                   rho_E        2.491525e+19       3.888612   1.682194e+18
                   rho_e        1.989541e+19       3.843530   1.385910e+18
                    Temp        2.636424e+05       3.579066   2.206018e+04
                 rho_He4        2.318394e+02       3.855445   1.601706e+01
                 rho_C12        2.701018e+01       3.555371   2.297492e+00
                 rho_O16        1.219769e-01       3.058968   1.463648e-02
                rho_Fe56        2.303884e-28       3.836486   1.612736e-29
            omegadot_He4        7.012030e-04       3.647774   5.594411e-05
            omegadot_C12        7.010557e-04       3.647708   5.593492e-05
            omegadot_O16        4.809908e-06       3.719771   3.650684e-07
           omegadot_Fe56        0.000000e+00   ------------   0.000000e+00
                    enuc        4.101967e+14       3.647806   3.272601e+13
                rho_enuc        2.431546e+20       3.688160   1.886409e+19
                pressure        1.191273e+19       3.853209   8.242890e+17
                  kineng        4.364250e+18       1.710193   1.333799e+18
              soundspeed        3.904857e+04       2.582062   6.521193e+03
                 Gamma_1        5.327899e-05       2.155268   1.196067e-05
              MachNumber        2.025977e-03       0.623713   1.314856e-03
                 entropy        4.881798e+04       2.988220   6.152279e+03
                 magvort        1.374529e-02       1.541607   4.721544e-03
                    divu        6.651906e-02       1.739739   1.991740e-02
                  eint_E        2.956758e+13       2.669140   4.648627e+12
                  eint_e        2.994106e+13       2.366716   5.805167e+12
                  logden        2.123888e-04       2.815421   3.017209e-05
                StateErr        2.303884e+02       3.836486   1.612736e+01
                  X(He4)        9.217078e-05       2.159111   2.063650e-05
                  X(C12)        9.217168e-05       2.159252   2.063468e-05
                  X(O16)        2.841791e-07       2.945469   3.689076e-08
                 X(Fe56)        2.312958e-36      -1.999997   9.251814e-36
                    abar        2.784591e-04       2.108230   6.458339e-05
              x_velocity        1.216079e+05       3.247312   1.280629e+04
              y_velocity        1.216079e+05       3.247312   1.280629e+04
              z_velocity        0.000000e+00   ------------   0.000000e+00
          t_sound_t_enuc        1.114753e-02       0.415506   8.357938e-03
                  magvel        5.318019e+05       0.615612   3.470821e+05
                  radvel        5.318019e+05       0.615612   3.470821e+05
                  magmom        2.207895e+11       0.638904   1.417912e+11
      angular_momentum_x        0.000000e+00   ------------   0.000000e+00
      angular_momentum_y        0.000000e+00   ------------   0.000000e+00
      angular_momentum_z        1.780409e+17       3.767491   1.307351e+16

@WeiqunZhang WeiqunZhang merged commit 1660547 into development Oct 14, 2019
@WeiqunZhang WeiqunZhang deleted the convergence_tool branch October 14, 2019 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants