HILA
Loading...
Searching...
No Matches
defs.h File Reference

This file defines all includes for HILA. More...

#include <iostream>
#include <array>
#include <vector>
#include <sstream>
#include <type_traits>
#include <cmath>
#include <iomanip>
#include <mpi.h>
#include "params.h"
#include <assert.h>
#include "plumbing/memalloc.h"
#include "plumbing/timing.h"
#include "plumbing/logger.h"
#include "plumbing/backend_cpu/defs.h"
#include "plumbing/random.h"
#include "plumbing/type_tools.h"
#include "plumbing/has_unary_minus.h"
#include "plumbing/real_var_ops.h"
Include dependency graph for defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  hila
 Invert diagonal + const. matrix using Sherman-Morrison formula.
 

Macros

#define RESTRICT   __restrict__
 

Enumerations

enum class  fft_direction
 define a class for FFT direction
 

Functions

void hila::error (const char *msg)
 Print message and force quit.
 
void hila::finishrun ()
 Normal, controlled exit - all nodes must call this. Prints timing information and information about communications.
 
void hila::initialize (int argc, char **argv)
 Read in command line arguments. Initialise default stream and MPI communication.
 
int hila::myrank ()
 rank of this node
 
int hila::number_of_nodes ()
 how many nodes there are
 
template<typename T >
constexpr T sqr (const T &arg)
 Define convenience function sqr(), returning square of argument.
 
void hila::synchronize ()
 synchronize mpi
 
void hila::terminate (int status)
 

Variables

logger_class hila::log
 Now declare the logger.
 
std::ostream hila::out
 this is our default output file stream
 
std::ostream hila::out0
 This writes output only from main process (node 0)
 
std::ofstream hila::output_file
 this is just a hook to store output file, if it is in use
 

Detailed Description

This file defines all includes for HILA.

Definition in file defs.h.

Macro Definition Documentation

◆ RESTRICT

#define RESTRICT   __restrict__

Define restrict? It is non-standard but supported by most (all?) compilers. ADD HERE GUARD FOR THOSE WHICH DO not HAVE IT

Definition at line 50 of file defs.h.