File Write_txtlog.h
FileList > src > Write_txtlog.h
Go to the source code of this file
#include "General.h"
#include "Param.h"
Public Functions
Type | Name |
---|---|
void | SaveParamtolog (Param XParam) Save model parameters to the log file. Saves the model parameters from the given Param object to the log file "BG_log.txt". |
void | create_logfile () Create a log file for BG-Flood. Creates a log file named "BG_log.txt" for BG-Flood. The log file is reset if it already exists. The function also writes a header with the current date and time. |
void | log (std::string text) |
void | saveparam2netCDF (int ncid, int bgfid, Param XParam) Save model parameters to a NetCDF file. Saves the model parameters from the given Param object to a NetCDF file. |
void | write_text_to_log_file (std::string text) Write text to the log file. Writes the given text to the log file "BG_log.txt". |
Public Functions Documentation
function SaveParamtolog
Save model parameters to the log file. Saves the model parameters from the given Param object to the log file "BG_log.txt".
Parameters:
XParam
The Param object containing the model parameters
function create_logfile
Create a log file for BG-Flood. Creates a log file named "BG_log.txt" for BG-Flood. The log file is reset if it already exists. The function also writes a header with the current date and time.
function log
function saveparam2netCDF
Save model parameters to a NetCDF file. Saves the model parameters from the given Param object to a NetCDF file.
Parameters:
ncid
The NetCDF file IDbgfid
The NetCDF group ID for the parametersXParam
The Param object containing the model parameters
function write_text_to_log_file
Write text to the log file. Writes the given text to the log file "BG_log.txt".
Parameters:
text
The text to write to the log file
The documentation for this class was generated from the following file src/Write_txtlog.h