This commit is contained in:
@@ -44,6 +44,9 @@ int main(void)
|
||||
int conv_increment = -1;
|
||||
int conv_iteration = -1;
|
||||
int conv_converged = -1;
|
||||
int conv_cutback_count = -1;
|
||||
int conv_status_code = -999;
|
||||
int conv_failure_code = -999;
|
||||
int node_ids[1] = {2};
|
||||
int facet_id[8];
|
||||
int elem_id[8];
|
||||
@@ -78,6 +81,11 @@ int main(void)
|
||||
double contact_tangent_time = -1.0;
|
||||
double conv_residual_norm = -1.0;
|
||||
double conv_correction_norm = -1.0;
|
||||
double conv_last_dt = -1.0;
|
||||
double conv_last_accepted_time = -1.0;
|
||||
double conv_relative_residual = -1.0;
|
||||
double conv_contact_gap = -1.0;
|
||||
double conv_combined_norm = -1.0;
|
||||
|
||||
ierr = femlite_initialize();
|
||||
if (ierr != 0) return check_ierr(ierr, 1);
|
||||
@@ -104,6 +112,23 @@ int main(void)
|
||||
conv_residual_norm != 0.0 || conv_correction_norm != 0.0 ||
|
||||
conv_converged != 0) return 39;
|
||||
|
||||
ierr = femlite_get_convergence_diagnostics(&conv_cutback_count,
|
||||
&conv_last_dt,
|
||||
&conv_last_accepted_time,
|
||||
&conv_status_code,
|
||||
&conv_failure_code);
|
||||
if (ierr != 0) return check_ierr(ierr, 40);
|
||||
if (conv_cutback_count != 0 || conv_last_dt != 0.0 ||
|
||||
conv_last_accepted_time != 0.0 ||
|
||||
conv_status_code != 0 || conv_failure_code != 0) return 41;
|
||||
|
||||
ierr = femlite_get_convergence_metrics(&conv_relative_residual,
|
||||
&conv_contact_gap,
|
||||
&conv_combined_norm);
|
||||
if (ierr != 0) return check_ierr(ierr, 42);
|
||||
if (conv_relative_residual != 0.0 || conv_contact_gap != 0.0 ||
|
||||
conv_combined_norm != 0.0) return 43;
|
||||
|
||||
ierr = femlite_get_contact_summary(&active_contact, &contact_work_step,
|
||||
&contact_work_total,
|
||||
&contact_max_penetration,
|
||||
|
||||
Reference in New Issue
Block a user