41 fprintf(
out_,
"%s\n",
"what a nice title");
54 "%%%ld.%ldf%%%ld.%ldf%%%ld.%ldf%%%ld.%ldf%%%ld.%ldf%%%ld.%ldf\n", l,
55 pr, l, pr, l, pr, l, vpr, l, vpr, l, vpr);
57 sprintf(format,
"%%%ld.%ldf%%%ld.%ldf%%%ld.%ldf\n", l, pr, l, pr, l, pr);
65 fprintf(
out_,
"%5ld%-5.5s%5.5s%5ld", (resnr + 1) % 100000, resname.c_str(),
66 atomname.c_str(), (i + 1) % 100000);
72 fprintf(
out_, format, r.x(), r.y(), r.z(), vv.x(), vv.y(), vv.z());
74 fprintf(
out_, format, r.x(), r.y(), r.z());
79 Eigen::Matrix3d box = conf->
getBox();
86 Eigen::Matrix3d box_offdiag = box;
87 box_offdiag.diagonal().array() = 0.0;
89 if (box_offdiag.isApproxToConstant(0, 1
e-9)) {
91 "%%%ld.%ldf%%%ld.%ldf%%%ld.%ldf"
92 "%%%ld.%ldf%%%ld.%ldf%%%ld.%ldf%%%ld.%ldf%%%ld.%ldf%%%ld.%ldf\n",
93 l, pr, l, pr, l, pr, l, pr, l, pr, l, pr, l, pr, l, pr, l, pr);
94 fprintf(
out_, format, box(0, 0), box(1, 1), box(2, 2), box(1, 0), box(2, 0),
95 box(0, 1), box(2, 1), box(0, 2), box(1, 2));
97 sprintf(format,
"%%%ld.%ldf%%%ld.%ldf%%%ld.%ldf\n", l, pr, l, pr, l, pr);
98 fprintf(
out_, format, box(0, 0), box(1, 1), box(2, 2));