Skip to content

Commit

Permalink
Output arc length
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Oct 10, 2023
1 parent 442f309 commit 2035167
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Solver/Ramm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ Ramm::Ramm(const unsigned T, const double L, const bool F, const double MINL, co
: Solver(T)
, arc_length(L)
, fixed_arc_length(F)
, min_arc_length(fabs(MINL))
, max_arc_length(fabs(MAXL)) {}
, min_arc_length(std::max(0., MINL))
, max_arc_length(std::max(0., MAXL)) {}

int Ramm::analyze() {
auto& C = get_converger();
auto& G = get_integrator();
auto& W = G->get_domain()->get_factory();

suanpan_highlight(">> Current Load Level: {:+.5f}.\n", W->get_trial_load_factor().at(0));
suanpan_highlight(">> Current Load Level: {:+.5f}; Arc Length {:.3e}.\n", W->get_trial_load_factor().at(0), arc_length);

const auto max_iteration = C->get_max_iteration();

Expand Down

0 comments on commit 2035167

Please sign in to comment.