Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions | Variables
BasisOptimize.cpp File Reference

Functions which calculation optimized basis of the stoichiometric coefficient matrix (see /ref equil functions) More...

#include "cantera/equil/MultiPhase.h"
#include "cantera/numerics/ctlapack.h"
Include dependency graph for BasisOptimize.cpp:

Go to the source code of this file.

Namespaces

 Cantera
 Namespace for the Cantera kernel.
 

Functions

static void print_stringTrunc (const char *str, int space, int alignment)
 Print a string within a given space limit. More...
 

Variables

int BasisOptimize_print_lvl = 0
 External int that is used to turn on debug printing for the BasisOptimze program. More...
 

Detailed Description

Functions which calculation optimized basis of the stoichiometric coefficient matrix (see /ref equil functions)

Definition in file BasisOptimize.cpp.

Function Documentation

static void print_stringTrunc ( const char *  str,
int  space,
int  alignment 
)
static

Print a string within a given space limit.

This routine limits the amount of the string that will be printed to a maximum of "space" characters.

Parameters
strString -> must be null terminated.
spacespace limit for the printing.
alignment0 centered 1 right aligned 2 left aligned

Definition at line 379 of file BasisOptimize.cpp.

References Cantera::writelog(), and Cantera::writelogf().

Referenced by Cantera::BasisOptimize().