Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91120328
fix_aveforce_cuda.h
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
Fri, Nov 8, 03:06
Size
1 KB
Mime Type
text/x-c
Expires
Sun, Nov 10, 03:06 (2 d)
Engine
blob
Format
Raw Data
Handle
22200500
Attached To
rLAMMPS lammps
fix_aveforce_cuda.h
View Options
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
Original Version:
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
See the README file in the top-level LAMMPS directory.
-----------------------------------------------------------------------
USER-CUDA Package and associated modifications:
https://sourceforge.net/projects/lammpscuda/
Christian Trott, christian.trott@tu-ilmenau.de
Lars Winterfeld, lars.winterfeld@tu-ilmenau.de
Theoretical Physics II, University of Technology Ilmenau, Germany
See the README file in the USER-CUDA directory.
This software is distributed under the GNU General Public License.
------------------------------------------------------------------------- */
#ifdef FIX_CLASS
FixStyle
(
aveforce
/
cuda
,
FixAveForceCuda
)
#else
#ifndef LMP_FIX_AVE_FORCE_CUDA_H
#define LMP_FIX_AVE_FORCE_CUDA_H
#include "fix.h"
#include "cuda_data.h"
namespace
LAMMPS_NS
{
class
FixAveForceCuda
:
public
Fix
{
public:
FixAveForceCuda
(
class
LAMMPS
*
,
int
,
char
**
);
~
FixAveForceCuda
();
int
setmask
();
void
init
();
void
setup
(
int
);
void
min_setup
(
int
);
void
post_force
(
int
);
void
post_force_respa
(
int
,
int
,
int
);
void
min_post_force
(
int
);
double
compute_vector
(
int
);
private:
class
Cuda
*
cuda
;
char
*
xstr
,
*
ystr
,
*
zstr
;
int
iregion
;
double
xvalue
,
yvalue
,
zvalue
;
double
foriginal_all
[
4
];
double
foriginal
[
4
];
cCudaData
<
double
,
F_CFLOAT
,
x
>*
cu_foriginal
;
int
nlevels_respa
;
int
varflag
;
int
xvar
,
yvar
,
zvar
,
xstyle
,
ystyle
,
zstyle
;
};
}
#endif
#endif
Event Timeline
Log In to Comment