Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92132888
angle_harmonic_intel.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
Sun, Nov 17, 15:51
Size
2 KB
Mime Type
text/x-c
Expires
Tue, Nov 19, 15:51 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22381056
Attached To
rLAMMPS lammps
angle_harmonic_intel.h
View Options
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This software is distributed under
the GNU General Public License.
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------
Contributing author: W. Michael Brown (Intel)
------------------------------------------------------------------------- */
#ifdef ANGLE_CLASS
AngleStyle
(
harmonic
/
intel
,
AngleHarmonicIntel
)
#else
#ifndef LMP_ANGLE_HARMONIC_INTEL_H
#define LMP_ANGLE_HARMONIC_INTEL_H
#include <stdio.h>
#include "angle_harmonic.h"
#include "fix_intel.h"
namespace
LAMMPS_NS
{
class
AngleHarmonicIntel
:
public
AngleHarmonic
{
public:
AngleHarmonicIntel
(
class
LAMMPS
*
);
virtual
~
AngleHarmonicIntel
();
virtual
void
compute
(
int
,
int
);
virtual
void
init_style
();
protected:
FixIntel
*
fix
;
template
<
class
flt_t
>
class
ForceConst
;
template
<
class
flt_t
,
class
acc_t
>
void
compute
(
int
eflag
,
int
vflag
,
IntelBuffers
<
flt_t
,
acc_t
>
*
buffers
,
const
ForceConst
<
flt_t
>
&
fc
);
template
<
int
EVFLAG
,
int
EFLAG
,
int
NEWTON_BOND
,
class
flt_t
,
class
acc_t
>
void
eval
(
const
int
vflag
,
IntelBuffers
<
flt_t
,
acc_t
>
*
buffers
,
const
ForceConst
<
flt_t
>
&
fc
);
template
<
class
flt_t
,
class
acc_t
>
void
pack_force_const
(
ForceConst
<
flt_t
>
&
fc
,
IntelBuffers
<
flt_t
,
acc_t
>
*
buffers
);
#ifdef _LMP_INTEL_OFFLOAD
int
_use_base
;
#endif
template
<
class
flt_t
>
class
ForceConst
{
public:
typedef
struct
{
flt_t
k
,
theta0
;
}
fc_packed1
;
fc_packed1
*
fc
;
ForceConst
()
:
_nangletypes
(
0
)
{}
~
ForceConst
()
{
set_ntypes
(
0
,
NULL
);
}
void
set_ntypes
(
const
int
nangletypes
,
Memory
*
memory
);
private:
int
_nangletypes
;
Memory
*
_memory
;
};
ForceConst
<
float
>
force_const_single
;
ForceConst
<
double
>
force_const_double
;
};
}
#endif
#endif
/* ERROR/WARNING messages:
*/
Event Timeline
Log In to Comment