Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94011678
grid_map_pot_GPU.cuh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Dec 3, 06:00
Size
2 KB
Mime Type
text/x-c
Expires
Thu, Dec 5, 06:00 (2 d)
Engine
blob
Format
Raw Data
Handle
22698608
Attached To
R1448 Lenstool-HPC
grid_map_pot_GPU.cuh
View Options
/**
Lenstool-HPC: HPC based massmodeling software and Lens-map generation
Copyright (C) 2017 Christoph Schaefer, EPFL (christophernstrerne.schaefer@epfl.ch), Gilles Fourestey (gilles.fourestey@epfl.ch)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
@brief: Function for potential computation over a grid
*/
#ifndef GRID_MAP_POT_GPU_CUH_
#define GRID_MAP_POT_GPU_CUH_
//#include <fstream>
//#include "gradient2_GPU.cuh"
#include "grid_potential_GPU.cuh"
#include "module_cosmodistances.hpp"
#include <structure_hpc.hpp>
//#include <cuda.h>
////type for mapping functions
typedef void (*map_pot_function_t) (type_t *map, type_t dl0s, type_t dos, type_t dl, type_t h, type_t z,int nbgridcells_x, int nbgridcells_y, const struct grid_param *frame);
////Map function selection
map_pot_function_t select_map_potential_function(const struct runmode_param* runmode);
////Map functions
//Amplification
void potential_1_grid_CPU_GPU(type_t *, type_t , type_t, type_t , type_t , type_t ,int ,int ,const struct grid_param*);
void potential_2_grid_CPU_GPU(type_t *, type_t , type_t, type_t , type_t , type_t ,int ,int ,const struct grid_param*);
void potential_3_grid_CPU_GPU(type_t *, type_t , type_t, type_t , type_t , type_t ,int ,int ,const struct grid_param*);
////General mapping function
void map_grid_potential_GPU(map_pot_function_t mapfunction, type_t *amplif,const struct cosmo_param *cosmo, const struct grid_param *frame, const struct Potential_SOA *lens, int Nlens,int nbgridcells, int mode_amp, type_t z );
void map_grid_potential_GPU(map_pot_function_t mapfunction, type_t *amplif,const struct cosmo_param *cosmo, const struct grid_param *frame, const struct Potential_SOA *lens, int Nlens, int mode_amp, type_t z, type_t dx, type_t dy, int nbgridcells_x, int nbgridcells_y, int istart = 0, int jstart = 0);
//
#endif /* GRADIENTGPU_CUH_ */
Event Timeline
Log In to Comment