forked from rikigigi/analisi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
heatc.h
43 lines (37 loc) · 945 Bytes
/
heatc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
*
* (c) Riccardo Bertossa, 2019
*
* Use at your own risk.
*
* If you modified the code, I could be happy if you contribute on github!
*
**/
#ifndef HEATC_H
#define HEATC_H
#include "operazionisulista.h"
#include <vector>
class Traiettoria;
class HeatC: public OperazioniSuLista<HeatC, double>
{
public:
HeatC(Traiettoria *t,
double sigma,
unsigned int nthreads=0,
unsigned int skip=1);
unsigned int numeroTimestepsOltreFineBlocco(unsigned int n_b) {return 1;}
void reset(const unsigned int numeroTimestepsPerBlocco);
void calcola(unsigned int primo);
HeatC & operator = (const HeatC &);
~HeatC();
std::vector<ssize_t> get_shape() const;
std::vector<ssize_t> get_stride() const;
private:
double sigma;
unsigned int nthreads;
unsigned int skip;
Traiettoria *t;
unsigned int ntimesteps;
unsigned int tipi_atomi;
};
#endif // HEATC_H