PolyFEM
Loading...
Searching...
No Matches
polyfem::io::RuntimeStatsCSVWriter Class Reference

#include <OutData.hpp>

Collaboration diagram for polyfem::io::RuntimeStatsCSVWriter:
[legend]

Public Member Functions

 RuntimeStatsCSVWriter (const std::string &path, const State &state, const double t0, const double dt)
 
 ~RuntimeStatsCSVWriter ()
 
void write (const int t, const double forward, const double remeshing, const double global_relaxation, const Eigen::MatrixXd &sol)
 

Protected Attributes

std::ofstream file
 
const Statestate
 
const double t0
 
const double dt
 
double total_forward_solve_time = 0
 
double total_remeshing_time = 0
 
double total_global_relaxation_time = 0
 

Detailed Description

Definition at line 523 of file OutData.hpp.

Constructor & Destructor Documentation

◆ RuntimeStatsCSVWriter()

polyfem::io::RuntimeStatsCSVWriter::RuntimeStatsCSVWriter ( const std::string &  path,
const State state,
const double  t0,
const double  dt 
)

Definition at line 2958 of file OutData.cpp.

References file.

◆ ~RuntimeStatsCSVWriter()

polyfem::io::RuntimeStatsCSVWriter::~RuntimeStatsCSVWriter ( )

Definition at line 2964 of file OutData.cpp.

References file.

Member Function Documentation

◆ write()

void polyfem::io::RuntimeStatsCSVWriter::write ( const int  t,
const double  forward,
const double  remeshing,
const double  global_relaxation,
const Eigen::MatrixXd &  sol 
)

Definition at line 2969 of file OutData.cpp.

References dt, file, getPeakRSS(), polyfem::State::mesh, polyfem::State::n_bases, state, t0, total_forward_solve_time, total_global_relaxation_time, and total_remeshing_time.

Referenced by polyfem::State::solve_transient_tensor_nonlinear().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ dt

const double polyfem::io::RuntimeStatsCSVWriter::dt
protected

Definition at line 535 of file OutData.hpp.

Referenced by write().

◆ file

std::ofstream polyfem::io::RuntimeStatsCSVWriter::file
protected

Definition at line 532 of file OutData.hpp.

Referenced by RuntimeStatsCSVWriter(), write(), and ~RuntimeStatsCSVWriter().

◆ state

const State& polyfem::io::RuntimeStatsCSVWriter::state
protected

Definition at line 533 of file OutData.hpp.

Referenced by write().

◆ t0

const double polyfem::io::RuntimeStatsCSVWriter::t0
protected

Definition at line 534 of file OutData.hpp.

Referenced by write().

◆ total_forward_solve_time

double polyfem::io::RuntimeStatsCSVWriter::total_forward_solve_time = 0
protected

Definition at line 536 of file OutData.hpp.

Referenced by write().

◆ total_global_relaxation_time

double polyfem::io::RuntimeStatsCSVWriter::total_global_relaxation_time = 0
protected

Definition at line 538 of file OutData.hpp.

Referenced by write().

◆ total_remeshing_time

double polyfem::io::RuntimeStatsCSVWriter::total_remeshing_time = 0
protected

Definition at line 537 of file OutData.hpp.

Referenced by write().


The documentation for this class was generated from the following files: