MPQC
3.0.0-alpha
psiinput.timpl.h
1
#ifndef _chemistry_qc_psi_input_timpl_h
2
#define _chemistry_qc_psi_input_timpl_h
3
4
#include<chemistry/qc/psi/psiinput.h>
5
6
template
<
typename
T>
7
void
8
sc::PsiInput::write_keyword_array(
const
char
*keyword,
const
std::vector<T>& values)
9
{
10
if
(!can_run_on_me())
return
;
11
write_indent();
12
file_ << scprintf(
"%s = ("
, keyword);
13
file_ << std::setw(24) << std::setprecision(12);
14
const
size_t
size = values.size();
15
for
(
int
i=0; i<size; i++) {
16
file_ << values[i] <<
" "
;
17
}
18
file_ <<
")"
<< std::endl;
19
}
20
21
#endif
/* header guard */
Generated at Sun Jan 26 2020 23:23:59 for
MPQC
3.0.0-alpha using the documentation package
Doxygen
1.8.16.