Commit ef336f33 authored by Håkan Wennlöf's avatar Håkan Wennlöf
Browse files

Changed the name of types XYZVectorInt and XYVectorInt to contain UInt instead.

Also added name to contributors list.
parent 036a334b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -120,6 +120,7 @@ The following authors, in alphabetical order, have developed or contributed to A
* Ondrej Theiner, Charles University, @otheiner
* Annika Vauth, University of Hamburg, @avauth
* Mateus Vicente Barreto Pinto, CERN, @mvicente
* Håkan Wennlöf, DESY, @hwennlof
* Andy Wharton, Lancaster University, @awharton
* Morag Williams, University of Glasgow, @williamm

+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ The following authors, in alphabetical order, have developed or contributed to \
\item Ondrej Theiner, Charles University
\item Annika Vauth, University of Hamburg
\item Mateus Vicente Barreto Pinto, CERN
\item Håkan Wennlöf, DESY
\item Andy Wharton, Lancaster University
\item Morag Williams, University of Glasgow
\end{itemize}
+7 −7
Original line number Diff line number Diff line
@@ -46,8 +46,8 @@ void interrupt_handler(int) {
}

int main(int argc, char** argv) {
    using XYZVectorInt = DisplacementVector3D<Cartesian3D<unsigned int>>;
    using XYVectorInt = DisplacementVector2D<Cartesian2D<unsigned int>>;
    using XYZVectorUInt = DisplacementVector3D<Cartesian3D<unsigned int>>;
    using XYVectorUInt = DisplacementVector2D<Cartesian2D<unsigned int>>;
    using FileType = allpix::FileType;
    using FieldQuantity = allpix::FieldQuantity;

@@ -182,13 +182,13 @@ int main(int argc, char** argv) {
        const auto units = config.get<std::string>("observable_units", "V/cm");
        const auto vector_field = config.get<bool>("vector_field", (observable == "ElectricField"));

        XYZVectorInt divisions;
        XYZVectorUInt divisions;
        const auto dimension = config.get<size_t>("dimension", 3);
        if(dimension == 2) {
            auto divisions_yz = config.get<XYVectorInt>("divisions", XYVectorInt(100, 100));
            divisions = XYZVectorInt(1, divisions_yz.x(), divisions_yz.y());
            auto divisions_yz = config.get<XYVectorUInt>("divisions", XYVectorUInt(100, 100));
            divisions = XYZVectorUInt(1, divisions_yz.x(), divisions_yz.y());
        } else if(dimension == 3) {
            divisions = config.get<XYZVectorInt>("divisions", XYZVectorInt(100, 100, 100));
            divisions = config.get<XYZVectorUInt>("divisions", XYZVectorUInt(100, 100, 100));
        } else {
            throw allpix::InvalidValueError(config, "dimension", "only two or three dimensional fields are supported");
        }
@@ -291,7 +291,7 @@ int main(int argc, char** argv) {
                        << rot.at(2) << ")";
        }

        const unsigned int mesh_points_total = divisions.x() * divisions.y() * divisions.z();
        const auto mesh_points_total = divisions.x() * divisions.y() * divisions.z();
        LOG(STATUS) << "Mesh dimensions: " << maxx - minx << " x " << maxy - miny << " x " << maxz - minz << std::endl
                    << "New mesh element dimension: " << xstep << " x " << ystep << " x " << zstep << std::endl
                    << "Volume: " << cell_volume << std::endl