PSCF v1.3
hasVariableAngle.cpp
1/*
2* PSCF - Polymer Self-Consistent Field
3*
4* Copyright 2015 - 2025, The Regents of the University of Minnesota
5* Distributed under the terms of the GNU General Public License.
6*/
7
8#include <prdc/crystal/hasVariableAngle.h>
9
10namespace Pscf {
11namespace Prdc {
12
13 template <>
15 { return false; }
16
17 template <>
19 {
20 UTIL_CHECK(lattice != UnitCell<2>::Null);
21 if ((lattice == UnitCell<2>::Oblique) ||
22 (lattice == UnitCell<2>::Rhombic)) {
23 return true;
24 } else {
25 return false;
26 }
27 }
28
29 template <>
31 {
32 UTIL_CHECK(lattice != UnitCell<3>::Null);
33 if ((lattice == UnitCell<3>::Monoclinic) ||
34 (lattice == UnitCell<3>::Triclinic) ||
35 (lattice == UnitCell<3>::Rhombohedral)) {
36 return true;
37 } else {
38 return false;
39 }
40 }
41
42}
43}
Base template for UnitCell<D> classes, D=1, 2 or 3.
Definition UnitCell.h:56
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
Definition global.h:68
Periodic fields and crystallography.
Definition CField.cpp:11
bool hasVariableAngle(typename UnitCell< D >::LatticeSystem lattice)
Return true if lattice type has variable angle parameters.
PSCF package top-level namespace.
Definition param_pc.dox:1