WarpX
Loading...
Searching...
No Matches
ablastr::utils Namespace Reference

Namespaces

namespace  communication
 
namespace  enums
 
namespace  msg_logger
 
namespace  serialization
 
namespace  text
 
namespace  TextMsg
 
namespace  timer
 

Classes

class  SignalHandling
 Signal handling. More...
 

Functions

std::vector< double > getRelativeCellPosition (amrex::MultiFab const &mf)
 
void write_used_inputs_file (std::string const &filename, bool verbose=true)
 

Function Documentation

◆ getRelativeCellPosition()

std::vector< double > ablastr::utils::getRelativeCellPosition ( amrex::MultiFab const & mf)
nodiscard

Get the Relative Cell Position of Values in an MultiFab

Translate the IndexType of a given MultiFab into a position relative to the lower corner of a cell.

Parameters
[in]mfthe amrex::MultiFab to get relative cell positions for
Returns
relative position to the lower corner, scaled to cell size [0.0:1.0)

◆ write_used_inputs_file()

void ablastr::utils::write_used_inputs_file ( std::string const & filename,
bool verbose = true )

Write a file that record all inputs: inputs file + command line options

This uses the same syntax as amrex::ParmParse inputs files. Only the AMReX IOProcessor writes.

Parameters
filenamethe name of the text file to write
verboseprint information about the file location to stdout