Commit a516b813 authored by Doak, Peter W.'s avatar Doak, Peter W.
Browse files

Merge remote-tracking branch 'origin/single_measurement_G_k_w' into single_measurement_G_k_w

parents ce481e59 ff378551
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
# run summit_load_modules.sh before running this script.

cmake -DDCA_HAVE_LAPACK=ON -DLAPACK_LIBRARIES="${OLCF_ESSL_ROOT}/lib64/libessl.so;${OLCF_NETLIB_LAPACK_ROOT}/lib64/liblapack.so;${OLCF_NETLIB_LAPACK_ROOT}/lib64/libblas.so" -DDCA_ESSL_INCLUDES=${OLCF_ESSL_ROOT}/include -DDCA_WITH_ADIOS2=1 -DTEST_RUNNER=jsrun -DMPIEXEC_NUMPROC_FLAG="-n" -DMPIEXEC_PREFLAGS="-a 1 -g 1 -c 4" -DSMPIARGS_FLAG_NOMPI="--smpiargs=none" -DDCA_WITH_CUDA=1 -DDCA_WITH_CUDA_AWARE_MPI=1 -DCMAKE_CUDA_ARCHITECTURS=70 -DMAGMA_DIR="/gpfs/alpine/world-shared/cph102/epd/magma_cuda11" -DDCA_WITH_TESTS_FAST=ON -DDCA_WITH_TESTS_EXTENSIVE=ON -DFFTW_INCLUDE_DIR=${OLCF_FFTW_ROOT}/include -DFFTW_LIBRARY=${OLCF_FFTW_ROOT}/lib/libfftw3.so -DCMAKE_PREFIX_PATH=${OLCF_ADIOS2_ROOT} -GNinja ..
+38 −0
Original line number Diff line number Diff line
// Copyright (C) 2022 ETH Zurich
// Copyright (C) 2022 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE for terms of usage.
// See CITATION.md for citation guidelines, if DCA++ is used for scientific publications.
//
// Author: Peter Doak (doakpw@ornl.gov)
//
// This file defines the types of reader/writers

#ifndef DCA_IO_TYPES_HPP
#define DCA_IO_TYPES_HPP

#include <string>

namespace dca {
namespace io {
// dca::phys::

/** Possible Flavors for G4
 *  dummy at 0 debug automatic initialization of int to 0
 *  causes a bug. That is not a good code smell.
 */
enum class IOType : int {
  JSON = 0,
  HDF5,
  ADIOS2
};

IOType stringToIOType(const std::string& name);

std::string toString(const IOType type);

}  // namespace io
}  // namespace dca

#endif  // DCA_PHYS_FOUR_POINT_TYPE_HPP

src/io/io_types.cpp

0 → 100644
+40 −0
Original line number Diff line number Diff line
// Copyright (C) 2018 ETH Zurich
// Copyright (C) 2018 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE for terms of usage.
// See CITATION.md for citation guidelines, if DCA++ is used for scientific publications.
//
// Author: Giovanni Balduzzi (gbalduzz@itp.phys.ethz.ch)
//
// This file implements the conversion of FourPointType to and from string.

#include "dca/io/io_types.hpp"

#include <stdexcept>

namespace dca {
namespace io {

IOType stringToIOType(const std::string& name) {
  if (name == "JSON")
    return IOType::JSON;
  else if (name == "HDF5")
    return IOType::HDF5;
  else if (name == "ADIOS2")
    return IOType::ADIOS2;
}

std::string toString(const IOType type) {
  switch (type) {
    case IOType::JSON:
      return "JSON";
    case IOType::HDF5:
      return "HDF5";
    case IOType::ADIOS2:
      return "ADIOS2";
  }
}

}  // namespace io
}  // namespace dca