XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
send_grid_fields.cpp File Reference
#include "timer_macro.hpp"
#include "globals.hpp"
#include "electric_field.hpp"
#include "send_grid_fields.hpp"
Include dependency graph for send_grid_fields.cpp:

Functions

void copy_phi_grid_fields_to_device (FortranPtr psn_fptr, ElectricField< DeviceType > &electric_field)
 
void copy_rho_grid_fields_to_device (FortranPtr psn_fptr, ElectricField< DeviceType > &electric_field)
 

Function Documentation

void copy_phi_grid_fields_to_device ( FortranPtr  psn_fptr,
ElectricField< DeviceType > &  electric_field 
)

Allocates the electric field etc. needed for electrons (i.e. with phi index) on device, then copies the field data from fortran arrays to the device views

Parameters
[in]psn_fptris the pointer to the Fortran psn object
[in,out]electric_fieldis the object containing the device fields
Returns
void

Here is the call graph for this function:

Here is the caller graph for this function:

void copy_rho_grid_fields_to_device ( FortranPtr  psn_fptr,
ElectricField< DeviceType > &  electric_field 
)

Here is the call graph for this function:

Here is the caller graph for this function: