Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tadah.LAMMPS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tadah
Tadah.LAMMPS
Commits
096c8b0e
Commit
096c8b0e
authored
3 months ago
by
Marcin Kirsz
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'main'
Develop See merge request
!10
parents
b6351fa4
50306b38
No related branches found
No related tags found
2 merge requests
!12
Main
,
!10
Develop
Pipeline
#50279
passed
2 months ago
Stage: build_debug
Stage: run_unit_tests
Stage: build_release
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
ML-TADAH/pair_tadah.cpp
+18
-0
18 additions, 0 deletions
ML-TADAH/pair_tadah.cpp
ML-TADAH/pair_tadah.h
+3
-0
3 additions, 0 deletions
ML-TADAH/pair_tadah.h
with
22 additions
and
1 deletion
.gitlab-ci.yml
+
1
−
1
View file @
096c8b0e
...
@@ -40,4 +40,4 @@ build_release_static:
...
@@ -40,4 +40,4 @@ build_release_static:
script
:
script
:
-
cd ${RELEASE_STATIC_DIR}
-
cd ${RELEASE_STATIC_DIR}
-
cmake ../.. -DCMAKE_BUILD_TYPE=Release -DTADAH_ENABLE_OPENMP=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=${INSTALL_PATH}
-
cmake ../.. -DCMAKE_BUILD_TYPE=Release -DTADAH_ENABLE_OPENMP=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=${INSTALL_PATH}
-
make -j ${CPU_BUILD}
-
make -j ${CPU_BUILD}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ML-TADAH/pair_tadah.cpp
+
18
−
0
View file @
096c8b0e
...
@@ -919,6 +919,7 @@ void PairTadah::coeff(int narg, char **arg)
...
@@ -919,6 +919,7 @@ void PairTadah::coeff(int narg, char **arg)
lt
=
TADAH
::
LammpsTadah
(
narg
,
arg
);
lt
=
TADAH
::
LammpsTadah
(
narg
,
arg
);
manybody_flag
=
lt
.
initmb
||
!
lt
.
linear
?
1
:
0
;
manybody_flag
=
lt
.
initmb
||
!
lt
.
linear
?
1
:
0
;
single_enable
=
lt
.
linear
&&
!
lt
.
initmb
?
1
:
0
;
if
(
lt
.
dimer
)
{
if
(
lt
.
dimer
)
{
manybody_flag
=
0
;
manybody_flag
=
0
;
...
@@ -1023,3 +1024,20 @@ void PairTadah::unpack_forward_comm(int n, int first, double *buf)
...
@@ -1023,3 +1024,20 @@ void PairTadah::unpack_forward_comm(int n, int first, double *buf)
else
else
lt
.
unpack_forward_nonlinear
(
n
,
first
,
buf
);
lt
.
unpack_forward_nonlinear
(
n
,
first
,
buf
);
}
}
double
PairTadah
::
single
(
int
/*i*/
,
int
/*j*/
,
int
itype
,
int
jtype
,
double
rsq
,
double
/*factor_coul*/
,
double
/*factor_lj*/
,
double
&
fforce
)
{
aed_type2
aed
(
lt
.
dsize
);
fd_type
fd
(
lt
.
dsize
);
aed
.
set_zero
();
// if (lt.bias)
// aed(0) = 1.0;
double
wj
=
lt
.
watom
[
jtype
-
1
];
double
rij
=
sqrt
(
rsq
);
double
fc_ij
=
wj
*
lt
.
S
.
c2b
->
calc
(
rij
);
double
fcp_ij
=
wj
*
lt
.
S
.
c2b
->
calc_prime
(
rij
);
lt
.
S
.
d2b
->
calc_all
(
rij
,
rsq
,
fc_ij
,
fcp_ij
,
aed
,
fd
);
fforce
=
lt
.
model
->
fpredict
(
fd
,
aed
,
0
)
/
rij
;
double
ei
=
lt
.
model
->
epredict
(
aed
);
return
ei
;
}
This diff is collapsed.
Click to expand it.
ML-TADAH/pair_tadah.h
+
3
−
0
View file @
096c8b0e
...
@@ -42,6 +42,9 @@ namespace LAMMPS_NS {
...
@@ -42,6 +42,9 @@ namespace LAMMPS_NS {
int
nmax
=
0
;
int
nmax
=
0
;
void
allocate
();
void
allocate
();
double
single
(
int
/*i*/
,
int
/*j*/
,
int
itype
,
int
jtype
,
double
rsq
,
double
/*factor_coul*/
,
double
/*factor_lj*/
,
double
&
fforce
);
public:
public:
PairTadah
(
class
LAMMPS
*
);
PairTadah
(
class
LAMMPS
*
);
~
PairTadah
()
override
;
~
PairTadah
()
override
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment