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:
34  long nvalid, long nphase, long npup, float pdiam, int device);
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_
this class provides the context in which CarmaObj are created
Definition: carma_context.h:79
this class provides the telescope features to COMPASS
this class provides the wfs_geom features to COMPASS
int allocate_buffers(map< vector< int >, cufftHandle * > campli_plans, map< vector< int >, cufftHandle * > fttotim_plans)
int slopes_geom(int type, float *slopes)
SutraWfsGeom(const SutraWfsGeom &wfs)
int fill_binimage(int async)
int slopes_geom(int type)
int define_mpi_rank(int rank, int size)
int wfs_initarrays(int *phasemap, float *offsets, float *fluxPerSub, int *validsubsx, int *validsubsy)
SutraWfsGeom(CarmaContext *context, SutraTelescope *d_tel, long nxsub, long nvalid, long nphase, long npup, float pdiam, int device)
this class provides the wfs features to COMPASS
Definition: sutra_wfs.h:35
string type
Definition: sutra_wfs.h:38
int rank
Definition: sutra_wfs.h:104
long nvalid
Definition: sutra_wfs.h:40
long nphase
Definition: sutra_wfs.h:46
long nxsub
Definition: sutra_wfs.h:39
int device
Definition: sutra_wfs.h:37
long npup
Definition: sutra_wfs.h:45