PSCF v1.2
paramIdConversions.h
1#ifndef PRDC_PARAM_ID_CONVERSIONS_H
2#define PRDC_PARAM_ID_CONVERSIONS_H
3
4/*
5* PSCF - Polymer Self-Consistent Field Theory
6*
7* Copyright 2016 - 2022, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include "UnitCell.h"
12
13namespace Pscf {
14namespace Prdc {
15
43 template <int D>
44 int convertFullParamIdToReduced(const int fullId,
45 const typename UnitCell<D>::LatticeSystem lattice);
46
63 template <int D>
64 int convertReducedParamIdToFull(const int reducedId,
65 const typename UnitCell<D>::LatticeSystem lattice);
66
67
68 // Explicit specializations
69 template <>
70 int convertFullParamIdToReduced<1>(const int fullId,
71 const typename UnitCell<1>::LatticeSystem lattice);
72
73 template <>
74 int convertFullParamIdToReduced<2>(const int fullId,
75 const typename UnitCell<2>::LatticeSystem lattice);
76
77 template <>
78 int convertFullParamIdToReduced<3>(const int fullId,
79 const typename UnitCell<3>::LatticeSystem lattice);
80
81 template <>
82 int convertReducedParamIdToFull<1>(const int reducedId,
83 const typename UnitCell<1>::LatticeSystem lattice);
84
85 template <>
86 int convertReducedParamIdToFull<2>(const int reducedId,
87 const typename UnitCell<2>::LatticeSystem lattice);
88
89 template <>
90 int convertReducedParamIdToFull<3>(const int reducedId,
91 const typename UnitCell<3>::LatticeSystem lattice);
92
93} // namespace Prdc
94} // namespace Pscf
95#endif
Base template for UnitCell<D> classes, D=1, 2 or 3.
Definition rpg/System.h:34
int convertReducedParamIdToFull(const int reducedId, const typename UnitCell< D >::LatticeSystem lattice)
Convert reduced lattice parameter index to a full index.
int convertFullParamIdToReduced(const int fullId, const typename UnitCell< D >::LatticeSystem lattice)
Convert full lattice parameter index to a reduced index.
PSCF package top-level namespace.
Definition param_pc.dox:1