COMPASS
5.4.4
End-to-end AO simulation tool using GPU acceleration
sutra_wfs_geom.h
Go to the documentation of this file.
1
// -----------------------------------------------------------------------------
2
// This file is part of COMPASS <https://anr-compass.github.io/compass/>
3
//
4
// Copyright (C) 2011-2023 COMPASS Team <https://github.com/ANR-COMPASS>
5
// All rights reserved.
6
7
// -----------------------------------------------------------------------------
8
16
17
#ifndef _SUTRA_WFS_GEOM_H_
18
#define _SUTRA_WFS_GEOM_H_
19
20
#include <
sutra_lgs.h
>
21
#include <
sutra_phase.h
>
22
#include <
sutra_target.h
>
23
#include <
sutra_telemetry.h
>
24
#include <
sutra_telescope.h
>
25
#include <
sutra_wfs.h
>
26
#include <map>
27
#include <vector>
28
29
using
std::string;
30
class
SutraWfsGeom
:
public
SutraWfs
{
31
public
:
32
public
:
33
SutraWfsGeom
(
CarmaContext
*context,
SutraTelescope
*d_tel,
long
nxsub
,
34
long
nvalid
,
long
nphase
,
long
npup
,
float
pdiam,
int
device
);
35
SutraWfsGeom
(
const
SutraWfsGeom
&wfs);
36
~SutraWfsGeom
();
37
38
int
wfs_initarrays
(
int
*phasemap,
float
*offsets,
float
*fluxPerSub,
39
int
*validsubsx,
int
*validsubsy);
40
int
slopes_geom
(
int
type
,
float
*slopes);
41
int
slopes_geom
(
int
type
);
42
43
int
define_mpi_rank
(
int
rank
,
int
size) {
return
EXIT_SUCCESS; }
44
int
allocate_buffers
(map<vector<int>, cufftHandle *> campli_plans,
45
map<vector<int>, cufftHandle *> fttotim_plans) {
46
return
EXIT_SUCCESS;
47
}
48
49
int
fill_binimage
(
int
async) {
return
0; }
50
int
comp_image
() {
return
0; }
51
52
private
:
53
int
comp_generic() {
return
0; }
54
};
55
56
#endif
// _SUTRA_WFS_GEOM_H_
CarmaContext
this class provides the context in which CarmaObj are created
Definition:
carma_context.h:79
SutraTelescope
this class provides the telescope features to COMPASS
Definition:
sutra_telescope.h:28
SutraWfsGeom
this class provides the wfs_geom features to COMPASS
Definition:
sutra_wfs_geom.h:30
SutraWfsGeom::allocate_buffers
int allocate_buffers(map< vector< int >, cufftHandle * > campli_plans, map< vector< int >, cufftHandle * > fttotim_plans)
Definition:
sutra_wfs_geom.h:44
SutraWfsGeom::slopes_geom
int slopes_geom(int type, float *slopes)
SutraWfsGeom::SutraWfsGeom
SutraWfsGeom(const SutraWfsGeom &wfs)
SutraWfsGeom::fill_binimage
int fill_binimage(int async)
Definition:
sutra_wfs_geom.h:49
SutraWfsGeom::slopes_geom
int slopes_geom(int type)
SutraWfsGeom::define_mpi_rank
int define_mpi_rank(int rank, int size)
Definition:
sutra_wfs_geom.h:43
SutraWfsGeom::~SutraWfsGeom
~SutraWfsGeom()
SutraWfsGeom::comp_image
int comp_image()
Definition:
sutra_wfs_geom.h:50
SutraWfsGeom::wfs_initarrays
int wfs_initarrays(int *phasemap, float *offsets, float *fluxPerSub, int *validsubsx, int *validsubsy)
SutraWfsGeom::SutraWfsGeom
SutraWfsGeom(CarmaContext *context, SutraTelescope *d_tel, long nxsub, long nvalid, long nphase, long npup, float pdiam, int device)
SutraWfs
this class provides the wfs features to COMPASS
Definition:
sutra_wfs.h:35
SutraWfs::type
string type
Definition:
sutra_wfs.h:38
SutraWfs::rank
int rank
Definition:
sutra_wfs.h:104
SutraWfs::nvalid
long nvalid
Definition:
sutra_wfs.h:40
SutraWfs::nphase
long nphase
Definition:
sutra_wfs.h:46
SutraWfs::nxsub
long nxsub
Definition:
sutra_wfs.h:39
SutraWfs::device
int device
Definition:
sutra_wfs.h:37
SutraWfs::npup
long npup
Definition:
sutra_wfs.h:45
sutra_lgs.h
sutra_phase.h
sutra_target.h
sutra_telemetry.h
sutra_telescope.h
sutra_wfs.h
libsutra
include.h
sutra_wfs_geom.h
Generated by
1.9.1