Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

msmpot_cubic.c File Reference

#include "msmpot_internal.h"

Go to the source code of this file.

Defines

#define OK   MSMPOT_SUCCESS
#define USE_FACTORED_GRID_TRANSFERS

Enumerations

enum  { R_STENCIL = 3, DIAM_STENCIL = 2*R_STENCIL + 1 }

Functions

int anterpolation (Msmpot *msm)
int interpolation_factored (Msmpot *msm)
int interpolation (Msmpot *msm)
int restriction (Msmpot *msm, int level)
int prolongation (Msmpot *msm, int level)
int latticecutoff (Msmpot *msm, int level)
int Msmpot_compute_longrng_cubic (Msmpot *msm)

Variables

const float PHI_FACTORED [DIAM_STENCIL]


Define Documentation

#define OK   MSMPOT_SUCCESS
 

Definition at line 32 of file msmpot_cubic.c.

Referenced by anterpolation, interpolation, interpolation_factored, latticecutoff, Msmpot_compute_longrng_cubic, prolongation, and restriction.

#define USE_FACTORED_GRID_TRANSFERS
 

Definition at line 40 of file msmpot_cubic.c.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
R_STENCIL 
DIAM_STENCIL 

Definition at line 847 of file msmpot_cubic.c.


Function Documentation

int anterpolation Msmpot   msm [static]
 

Definition at line 150 of file msmpot_cubic.c.

References ASSERT, Msmpot_t::atom, GRID_INDEX, GRID_INDEX_CHECK, GRID_ZERO, Msmpot_t::hx, Msmpot_t::hy, Msmpot_t::hz, IS_SET_ANY, Msmpot_t::isperiodic, Msmpot_t::lx0, Msmpot_t::ly0, Msmpot_t::lz0, n, Msmpot_t::natoms, OK, Msmpot_t::px0, Msmpot_t::py0, Msmpot_t::pz0, and Msmpot_t::qh.

Referenced by Msmpot_compute_longrng_cubic.

int interpolation Msmpot   msm [static]
 

Definition at line 472 of file msmpot_cubic.c.

References ASSERT, Msmpot_t::dx, Msmpot_t::dy, Msmpot_t::dz, Msmpot_t::eh, Msmpot_t::epotmap, GRID_INDEX, GRID_INDEX_CHECK, Msmpot_t::hx, Msmpot_t::hy, Msmpot_t::hz, IS_SET_ANY, Msmpot_t::isperiodic, Msmpot_t::lx0, Msmpot_t::ly0, Msmpot_t::lz0, Msmpot_t::mx, Msmpot_t::my, Msmpot_t::mz, OK, Msmpot_t::px0, Msmpot_t::py0, Msmpot_t::pz0, and z.

Referenced by Msmpot_compute_longrng_cubic.

int interpolation_factored Msmpot   msm [static]
 

Definition at line 315 of file msmpot_cubic.c.

References Msmpot_t::cycle_x, Msmpot_t::cycle_y, Msmpot_t::cycle_z, Msmpot_t::eh, Msmpot_t::epotmap, Msmpot_t::eyzd, Msmpot_t::ezd, Msmpot_t::hx_dx, Msmpot_t::hy_dy, Msmpot_t::hz_dz, IS_SET_X, IS_SET_Y, IS_SET_Z, Msmpot_t::isperiodic, Msmpot_t::mx, Msmpot_t::my, Msmpot_t::mz, NULL, OK, Msmpot_t::phi_x, Msmpot_t::phi_y, Msmpot_t::phi_z, Msmpot_t::rmap_x, Msmpot_t::rmap_y, and Msmpot_t::rmap_z.

Referenced by Msmpot_compute_longrng_cubic.

int latticecutoff Msmpot   msm,
int    level
[static]
 

Definition at line 1154 of file msmpot_cubic.c.

References ASSERT, Msmpot_t::eh, Msmpot_t::gc, GRID_INDEX, GRID_INDEX_CHECK, IS_SET_X, IS_SET_Y, IS_SET_Z, Msmpot_t::isperiodic, OK, and Msmpot_t::qh.

Referenced by Msmpot_compute_longrng_cubic.

int Msmpot_compute_longrng_cubic Msmpot   msm
 

Definition at line 54 of file msmpot_cubic.c.

References anterpolation, Msmpot_t::epotmap, ERROR, interpolation, interpolation_factored, latticecutoff, Msmpot_t::lx, Msmpot_t::ly, Msmpot_t::lz, Msmpot_cuda_compute_latcut, Msmpot_cuda_condense_qgrids, Msmpot_cuda_expand_egrids, Msmpot_t::nlevels, OK, prolongation, Msmpot_t::px, Msmpot_t::py, Msmpot_t::pz, REPORT, and restriction.

int prolongation Msmpot   msm,
int    level
[static]
 

Definition at line 1011 of file msmpot_cubic.c.

References DIAM_STENCIL, Msmpot_t::eh, IS_SET_X, IS_SET_Y, IS_SET_Z, Msmpot_t::isperiodic, Msmpot_t::lyzd, Msmpot_t::lzd, NULL, OK, PHI_FACTORED, and R_STENCIL.

Referenced by Msmpot_compute_longrng_cubic.

int restriction Msmpot   msm,
int    level
[static]
 

Definition at line 857 of file msmpot_cubic.c.

References DIAM_STENCIL, IS_SET_X, IS_SET_Y, IS_SET_Z, Msmpot_t::isperiodic, Msmpot_t::lyzd, Msmpot_t::lzd, NULL, OK, PHI_FACTORED, Msmpot_t::qh, and R_STENCIL.

Referenced by Msmpot_compute_longrng_cubic.


Variable Documentation

const float PHI_FACTORED[DIAM_STENCIL] [static]
 

Initial value:

 {
  -0.0625f, 0, 0.5625f, 1, 0.5625f, 0, -0.0625f
}

Definition at line 852 of file msmpot_cubic.c.

Referenced by prolongation, and restriction.


Generated on Thu Mar 28 02:44:41 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002