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

#include <SolverCSVWriter.hpp>

Public Member Functions

 RuntimeStatsCSVWriter (const std::string &path, const int n_bases, const int n_elements, const double t0, const double dt)
 
 ~RuntimeStatsCSVWriter ()
 
void write (const int t, const double forward, const double remeshing, const double global_relaxation)
 

Private Attributes

std::ofstream file
 
const int n_bases
 
const int n_elements
 
const double t0
 
const double dt
 

Detailed Description

Definition at line 30 of file SolverCSVWriter.hpp.

Constructor & Destructor Documentation

◆ RuntimeStatsCSVWriter()

polyfem::io::RuntimeStatsCSVWriter::RuntimeStatsCSVWriter ( const std::string &  path,
const int  n_bases,
const int  n_elements,
const double  t0,
const double  dt 
)

Definition at line 42 of file SolverCSVWriter.cpp.

References file.

◆ ~RuntimeStatsCSVWriter()

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

Definition at line 53 of file SolverCSVWriter.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 
)

Definition at line 58 of file SolverCSVWriter.cpp.

References dt, file, getPeakRSS(), n_bases, n_elements, and t0.

Here is the call graph for this function:

Member Data Documentation

◆ dt

const double polyfem::io::RuntimeStatsCSVWriter::dt
private

Definition at line 43 of file SolverCSVWriter.hpp.

Referenced by write().

◆ file

std::ofstream polyfem::io::RuntimeStatsCSVWriter::file
private

Definition at line 39 of file SolverCSVWriter.hpp.

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

◆ n_bases

const int polyfem::io::RuntimeStatsCSVWriter::n_bases
private

Definition at line 40 of file SolverCSVWriter.hpp.

Referenced by write().

◆ n_elements

const int polyfem::io::RuntimeStatsCSVWriter::n_elements
private

Definition at line 41 of file SolverCSVWriter.hpp.

Referenced by write().

◆ t0

const double polyfem::io::RuntimeStatsCSVWriter::t0
private

Definition at line 42 of file SolverCSVWriter.hpp.

Referenced by write().


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