diff --git a/src/GPU/pair_beck_gpu.cpp b/src/GPU/pair_beck_gpu.cpp index ff9537a33e..463123b0a3 100644 --- a/src/GPU/pair_beck_gpu.cpp +++ b/src/GPU/pair_beck_gpu.cpp @@ -158,7 +158,7 @@ void PairBeckGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = beck_gpu_init(atom->ntypes+1, cutsq, aa, alpha, beta, diff --git a/src/GPU/pair_born_coul_long_cs_gpu.cpp b/src/GPU/pair_born_coul_long_cs_gpu.cpp index db0faab0ab..95c3df7b09 100644 --- a/src/GPU/pair_born_coul_long_cs_gpu.cpp +++ b/src/GPU/pair_born_coul_long_cs_gpu.cpp @@ -194,7 +194,7 @@ void PairBornCoulLongCSGPU::init_style() g_ewald = force->kspace->g_ewald; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = bornclcs_gpu_init(atom->ntypes+1, cutsq, rhoinv, diff --git a/src/GPU/pair_born_coul_long_gpu.cpp b/src/GPU/pair_born_coul_long_gpu.cpp index cad174c0de..dbd55ef041 100644 --- a/src/GPU/pair_born_coul_long_gpu.cpp +++ b/src/GPU/pair_born_coul_long_gpu.cpp @@ -193,7 +193,7 @@ void PairBornCoulLongGPU::init_style() if (ncoultablebits) init_tables(cut_coul,cut_respa); int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = borncl_gpu_init(atom->ntypes+1, cutsq, rhoinv, diff --git a/src/GPU/pair_born_coul_wolf_cs_gpu.cpp b/src/GPU/pair_born_coul_wolf_cs_gpu.cpp index 5c8cac0ec2..9663c4be51 100644 --- a/src/GPU/pair_born_coul_wolf_cs_gpu.cpp +++ b/src/GPU/pair_born_coul_wolf_cs_gpu.cpp @@ -179,7 +179,7 @@ void PairBornCoulWolfCSGPU::init_style() cut_coul; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = borncwcs_gpu_init(atom->ntypes+1, cutsq, rhoinv, diff --git a/src/GPU/pair_born_coul_wolf_gpu.cpp b/src/GPU/pair_born_coul_wolf_gpu.cpp index 73e58b0a1f..8db3761f1f 100644 --- a/src/GPU/pair_born_coul_wolf_gpu.cpp +++ b/src/GPU/pair_born_coul_wolf_gpu.cpp @@ -177,7 +177,7 @@ void PairBornCoulWolfGPU::init_style() cut_coul; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = borncw_gpu_init(atom->ntypes+1, cutsq, rhoinv, diff --git a/src/GPU/pair_born_gpu.cpp b/src/GPU/pair_born_gpu.cpp index 770dad8346..3454adda18 100644 --- a/src/GPU/pair_born_gpu.cpp +++ b/src/GPU/pair_born_gpu.cpp @@ -161,7 +161,7 @@ void PairBornGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = born_gpu_init(atom->ntypes+1, cutsq, rhoinv, diff --git a/src/GPU/pair_buck_coul_cut_gpu.cpp b/src/GPU/pair_buck_coul_cut_gpu.cpp index 2c9e71bc83..ec002289f2 100644 --- a/src/GPU/pair_buck_coul_cut_gpu.cpp +++ b/src/GPU/pair_buck_coul_cut_gpu.cpp @@ -165,7 +165,7 @@ void PairBuckCoulCutGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = buckc_gpu_init(atom->ntypes+1, cutsq, rhoinv, buck1, buck2, diff --git a/src/GPU/pair_buck_coul_long_gpu.cpp b/src/GPU/pair_buck_coul_long_gpu.cpp index 3d48862c6a..913f68f4c4 100644 --- a/src/GPU/pair_buck_coul_long_gpu.cpp +++ b/src/GPU/pair_buck_coul_long_gpu.cpp @@ -189,7 +189,7 @@ void PairBuckCoulLongGPU::init_style() if (ncoultablebits) init_tables(cut_coul,cut_respa); int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = buckcl_gpu_init(atom->ntypes+1, cutsq, rhoinv, buck1, buck2, diff --git a/src/GPU/pair_buck_gpu.cpp b/src/GPU/pair_buck_gpu.cpp index d17f9d2072..4f091eede5 100644 --- a/src/GPU/pair_buck_gpu.cpp +++ b/src/GPU/pair_buck_gpu.cpp @@ -159,7 +159,7 @@ void PairBuckGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = buck_gpu_init(atom->ntypes+1, cutsq, rhoinv, buck1, buck2, diff --git a/src/GPU/pair_colloid_gpu.cpp b/src/GPU/pair_colloid_gpu.cpp index 8b7870575a..070b103ddf 100644 --- a/src/GPU/pair_colloid_gpu.cpp +++ b/src/GPU/pair_colloid_gpu.cpp @@ -169,7 +169,7 @@ void PairColloidGPU::init_style() } } int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = colloid_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_coul_cut_gpu.cpp b/src/GPU/pair_coul_cut_gpu.cpp index 9098f86737..fc4a44adc4 100644 --- a/src/GPU/pair_coul_cut_gpu.cpp +++ b/src/GPU/pair_coul_cut_gpu.cpp @@ -164,7 +164,7 @@ void PairCoulCutGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = coul_gpu_init(atom->ntypes+1, scale, cutsq, diff --git a/src/GPU/pair_coul_debye_gpu.cpp b/src/GPU/pair_coul_debye_gpu.cpp index 1db2995810..1104175046 100644 --- a/src/GPU/pair_coul_debye_gpu.cpp +++ b/src/GPU/pair_coul_debye_gpu.cpp @@ -165,7 +165,7 @@ void PairCoulDebyeGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = cdebye_gpu_init(atom->ntypes+1, scale, cutsq, diff --git a/src/GPU/pair_coul_dsf_gpu.cpp b/src/GPU/pair_coul_dsf_gpu.cpp index 830ad057e6..85cd978f33 100644 --- a/src/GPU/pair_coul_dsf_gpu.cpp +++ b/src/GPU/pair_coul_dsf_gpu.cpp @@ -182,7 +182,7 @@ void PairCoulDSFGPU::init_style() e_shift = erfcc/cut_coul - f_shift*cut_coul; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = cdsf_gpu_init(atom->ntypes+1, atom->nlocal, diff --git a/src/GPU/pair_coul_long_cs_gpu.cpp b/src/GPU/pair_coul_long_cs_gpu.cpp index 5b1fcd9c8f..84b6a665db 100644 --- a/src/GPU/pair_coul_long_cs_gpu.cpp +++ b/src/GPU/pair_coul_long_cs_gpu.cpp @@ -184,7 +184,7 @@ void PairCoulLongCSGPU::init_style() if (ncoultablebits) init_tables(cut_coul,cut_respa); int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = clcs_gpu_init(atom->ntypes+1, scale, diff --git a/src/GPU/pair_coul_long_gpu.cpp b/src/GPU/pair_coul_long_gpu.cpp index af6a66fa34..d27b4650ba 100644 --- a/src/GPU/pair_coul_long_gpu.cpp +++ b/src/GPU/pair_coul_long_gpu.cpp @@ -179,7 +179,7 @@ void PairCoulLongGPU::init_style() if (ncoultablebits) init_tables(cut_coul,cut_respa); int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = cl_gpu_init(atom->ntypes+1, scale, diff --git a/src/GPU/pair_dpd_gpu.cpp b/src/GPU/pair_dpd_gpu.cpp index d77d83e953..884834d94a 100644 --- a/src/GPU/pair_dpd_gpu.cpp +++ b/src/GPU/pair_dpd_gpu.cpp @@ -306,7 +306,7 @@ void PairDPDGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = dpd_gpu_init(atom->ntypes+1, cutsq, a0, gamma, sigma, diff --git a/src/GPU/pair_dpd_tstat_gpu.cpp b/src/GPU/pair_dpd_tstat_gpu.cpp index a5ae3e3001..507461fd23 100644 --- a/src/GPU/pair_dpd_tstat_gpu.cpp +++ b/src/GPU/pair_dpd_tstat_gpu.cpp @@ -325,7 +325,7 @@ void PairDPDTstatGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = dpd_tstat_gpu_init(atom->ntypes+1, cutsq, a0, gamma, sigma, diff --git a/src/GPU/pair_eam_alloy_gpu.cpp b/src/GPU/pair_eam_alloy_gpu.cpp index 4678a6f669..add3a3ca7a 100644 --- a/src/GPU/pair_eam_alloy_gpu.cpp +++ b/src/GPU/pair_eam_alloy_gpu.cpp @@ -181,7 +181,7 @@ void PairEAMAlloyGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int fp_size; int mnf = 5e-2 * neighbor->oneatom; diff --git a/src/GPU/pair_eam_fs_gpu.cpp b/src/GPU/pair_eam_fs_gpu.cpp index 390bb93987..394b520a73 100644 --- a/src/GPU/pair_eam_fs_gpu.cpp +++ b/src/GPU/pair_eam_fs_gpu.cpp @@ -180,7 +180,7 @@ void PairEAMFSGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int fp_size; int mnf = 5e-2 * neighbor->oneatom; diff --git a/src/GPU/pair_eam_gpu.cpp b/src/GPU/pair_eam_gpu.cpp index e458ea2020..fada4febb5 100644 --- a/src/GPU/pair_eam_gpu.cpp +++ b/src/GPU/pair_eam_gpu.cpp @@ -182,7 +182,7 @@ void PairEAMGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int fp_size; int mnf = 5e-2 * neighbor->oneatom; diff --git a/src/GPU/pair_gauss_gpu.cpp b/src/GPU/pair_gauss_gpu.cpp index fe9dd9ba96..04fc65dd06 100644 --- a/src/GPU/pair_gauss_gpu.cpp +++ b/src/GPU/pair_gauss_gpu.cpp @@ -157,7 +157,7 @@ void PairGaussGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = gauss_gpu_init(atom->ntypes+1, cutsq, a, b, diff --git a/src/GPU/pair_gayberne_gpu.cpp b/src/GPU/pair_gayberne_gpu.cpp index 81966824ba..c5e0a1afb5 100644 --- a/src/GPU/pair_gayberne_gpu.cpp +++ b/src/GPU/pair_gayberne_gpu.cpp @@ -205,7 +205,7 @@ void PairGayBerneGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = gb_gpu_init(atom->ntypes+1, gamma, upsilon, mu, diff --git a/src/GPU/pair_lj96_cut_gpu.cpp b/src/GPU/pair_lj96_cut_gpu.cpp index 84d1a1a10d..33774078d5 100644 --- a/src/GPU/pair_lj96_cut_gpu.cpp +++ b/src/GPU/pair_lj96_cut_gpu.cpp @@ -158,7 +158,7 @@ void PairLJ96CutGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = lj96_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_lj_charmm_coul_charmm_gpu.cpp b/src/GPU/pair_lj_charmm_coul_charmm_gpu.cpp index 4f8679a8a8..4d8d67cdca 100644 --- a/src/GPU/pair_lj_charmm_coul_charmm_gpu.cpp +++ b/src/GPU/pair_lj_charmm_coul_charmm_gpu.cpp @@ -165,7 +165,7 @@ void PairLJCharmmCoulCharmmGPU::init_style() double cell_size = sqrt(cut_bothsq) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; bool arithmetic = true; diff --git a/src/GPU/pair_lj_charmm_coul_long_gpu.cpp b/src/GPU/pair_lj_charmm_coul_long_gpu.cpp index 9753404d5e..42e869207e 100644 --- a/src/GPU/pair_lj_charmm_coul_long_gpu.cpp +++ b/src/GPU/pair_lj_charmm_coul_long_gpu.cpp @@ -191,7 +191,7 @@ void PairLJCharmmCoulLongGPU::init_style() if (ncoultablebits) init_tables(cut_coul,cut_respa); int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; bool arithmetic = true; diff --git a/src/GPU/pair_lj_class2_coul_long_gpu.cpp b/src/GPU/pair_lj_class2_coul_long_gpu.cpp index 3fc6195fa8..ae5321bc4f 100644 --- a/src/GPU/pair_lj_class2_coul_long_gpu.cpp +++ b/src/GPU/pair_lj_class2_coul_long_gpu.cpp @@ -186,7 +186,7 @@ void PairLJClass2CoulLongGPU::init_style() if (ncoultablebits) init_tables(cut_coul,cut_respa); int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = c2cl_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_lj_class2_gpu.cpp b/src/GPU/pair_lj_class2_gpu.cpp index cf8158ce5f..06ab116a7e 100644 --- a/src/GPU/pair_lj_class2_gpu.cpp +++ b/src/GPU/pair_lj_class2_gpu.cpp @@ -155,7 +155,7 @@ void PairLJClass2GPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = lj96_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_lj_cubic_gpu.cpp b/src/GPU/pair_lj_cubic_gpu.cpp index a0dd9498c6..2c6231ca89 100644 --- a/src/GPU/pair_lj_cubic_gpu.cpp +++ b/src/GPU/pair_lj_cubic_gpu.cpp @@ -163,7 +163,7 @@ void PairLJCubicGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = ljcb_gpu_init(atom->ntypes+1, cutsq, cut_inner_sq, diff --git a/src/GPU/pair_lj_cut_coul_cut_gpu.cpp b/src/GPU/pair_lj_cut_coul_cut_gpu.cpp index 7932a352b3..1583395f82 100644 --- a/src/GPU/pair_lj_cut_coul_cut_gpu.cpp +++ b/src/GPU/pair_lj_cut_coul_cut_gpu.cpp @@ -166,7 +166,7 @@ void PairLJCutCoulCutGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = ljc_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_lj_cut_coul_debye_gpu.cpp b/src/GPU/pair_lj_cut_coul_debye_gpu.cpp index eb8e2c9c7f..d83678bd9f 100644 --- a/src/GPU/pair_lj_cut_coul_debye_gpu.cpp +++ b/src/GPU/pair_lj_cut_coul_debye_gpu.cpp @@ -168,7 +168,7 @@ void PairLJCutCoulDebyeGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = ljcd_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_lj_cut_coul_dsf_gpu.cpp b/src/GPU/pair_lj_cut_coul_dsf_gpu.cpp index e071245a56..3a29d7e5a2 100644 --- a/src/GPU/pair_lj_cut_coul_dsf_gpu.cpp +++ b/src/GPU/pair_lj_cut_coul_dsf_gpu.cpp @@ -183,7 +183,7 @@ void PairLJCutCoulDSFGPU::init_style() e_shift = erfcc/cut_coul - f_shift*cut_coul; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = ljd_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_lj_cut_coul_long_gpu.cpp b/src/GPU/pair_lj_cut_coul_long_gpu.cpp index cff48afd1e..34e31fc044 100644 --- a/src/GPU/pair_lj_cut_coul_long_gpu.cpp +++ b/src/GPU/pair_lj_cut_coul_long_gpu.cpp @@ -191,7 +191,7 @@ void PairLJCutCoulLongGPU::init_style() if (ncoultablebits) init_tables(cut_coul,cut_respa); int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = ljcl_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_lj_cut_coul_msm_gpu.cpp b/src/GPU/pair_lj_cut_coul_msm_gpu.cpp index d686ea4d88..2fd1d55b54 100644 --- a/src/GPU/pair_lj_cut_coul_msm_gpu.cpp +++ b/src/GPU/pair_lj_cut_coul_msm_gpu.cpp @@ -177,7 +177,7 @@ void PairLJCutCoulMSMGPU::init_style() if (ncoultablebits) init_tables(cut_coul,cut_respa); int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = ljcm_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_lj_cut_dipole_cut_gpu.cpp b/src/GPU/pair_lj_cut_dipole_cut_gpu.cpp index 16eef6e8e8..93af562ed0 100644 --- a/src/GPU/pair_lj_cut_dipole_cut_gpu.cpp +++ b/src/GPU/pair_lj_cut_dipole_cut_gpu.cpp @@ -171,7 +171,7 @@ void PairLJCutDipoleCutGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = dpl_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_lj_cut_dipole_long_gpu.cpp b/src/GPU/pair_lj_cut_dipole_long_gpu.cpp index b7c29cedb8..9ec2bec258 100644 --- a/src/GPU/pair_lj_cut_dipole_long_gpu.cpp +++ b/src/GPU/pair_lj_cut_dipole_long_gpu.cpp @@ -195,7 +195,7 @@ void PairLJCutDipoleLongGPU::init_style() if (ncoultablebits) init_tables(cut_coul,nullptr); int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = dplj_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_lj_cut_gpu.cpp b/src/GPU/pair_lj_cut_gpu.cpp index edd2a7feb0..1de70701f0 100644 --- a/src/GPU/pair_lj_cut_gpu.cpp +++ b/src/GPU/pair_lj_cut_gpu.cpp @@ -162,7 +162,7 @@ void PairLJCutGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = ljl_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_lj_cut_tip4p_long_gpu.cpp b/src/GPU/pair_lj_cut_tip4p_long_gpu.cpp index 9584c6f68a..c63d1a4e91 100644 --- a/src/GPU/pair_lj_cut_tip4p_long_gpu.cpp +++ b/src/GPU/pair_lj_cut_tip4p_long_gpu.cpp @@ -210,7 +210,7 @@ void PairLJCutTIP4PLongGPU::init_style() if (ncoultablebits) init_tables(cut_coul,cut_respa); int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; // set alpha parameter diff --git a/src/GPU/pair_lj_expand_coul_long_gpu.cpp b/src/GPU/pair_lj_expand_coul_long_gpu.cpp index da0c720c74..af042bef42 100644 --- a/src/GPU/pair_lj_expand_coul_long_gpu.cpp +++ b/src/GPU/pair_lj_expand_coul_long_gpu.cpp @@ -191,7 +191,7 @@ void PairLJExpandCoulLongGPU::init_style() if (ncoultablebits) init_tables(cut_coul,cut_respa); int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = ljecl_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_lj_expand_gpu.cpp b/src/GPU/pair_lj_expand_gpu.cpp index 0e86e41255..87605af1a4 100644 --- a/src/GPU/pair_lj_expand_gpu.cpp +++ b/src/GPU/pair_lj_expand_gpu.cpp @@ -159,7 +159,7 @@ void PairLJExpandGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = lje_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_lj_gromacs_gpu.cpp b/src/GPU/pair_lj_gromacs_gpu.cpp index a605ebd6c4..b45d757ef4 100644 --- a/src/GPU/pair_lj_gromacs_gpu.cpp +++ b/src/GPU/pair_lj_gromacs_gpu.cpp @@ -162,7 +162,7 @@ void PairLJGromacsGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; diff --git a/src/GPU/pair_lj_sdk_coul_long_gpu.cpp b/src/GPU/pair_lj_sdk_coul_long_gpu.cpp index df2310e904..97b53fec33 100644 --- a/src/GPU/pair_lj_sdk_coul_long_gpu.cpp +++ b/src/GPU/pair_lj_sdk_coul_long_gpu.cpp @@ -195,7 +195,7 @@ void PairLJSDKCoulLongGPU::init_style() if (ncoultablebits) init_tables(cut_coul,nullptr); int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = sdkl_gpu_init(atom->ntypes+1, cutsq, lj_type, lj1, lj2, lj3, diff --git a/src/GPU/pair_lj_sdk_gpu.cpp b/src/GPU/pair_lj_sdk_gpu.cpp index 5a1960e4c8..cd6f4bc544 100644 --- a/src/GPU/pair_lj_sdk_gpu.cpp +++ b/src/GPU/pair_lj_sdk_gpu.cpp @@ -164,7 +164,7 @@ void PairLJSDKGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = sdk_gpu_init(atom->ntypes+1,cutsq,lj_type,lj1,lj2,lj3,lj4, diff --git a/src/GPU/pair_lj_sf_dipole_sf_gpu.cpp b/src/GPU/pair_lj_sf_dipole_sf_gpu.cpp index 470c2f049e..cb7a889ed5 100644 --- a/src/GPU/pair_lj_sf_dipole_sf_gpu.cpp +++ b/src/GPU/pair_lj_sf_dipole_sf_gpu.cpp @@ -170,7 +170,7 @@ void PairLJSFDipoleSFGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = dplsf_gpu_init(atom->ntypes+1, cutsq, lj1, lj2, lj3, lj4, diff --git a/src/GPU/pair_mie_cut_gpu.cpp b/src/GPU/pair_mie_cut_gpu.cpp index 05e92909da..e72c12da79 100644 --- a/src/GPU/pair_mie_cut_gpu.cpp +++ b/src/GPU/pair_mie_cut_gpu.cpp @@ -159,7 +159,7 @@ void PairMIECutGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = mie_gpu_init(atom->ntypes+1, cutsq, mie1, mie2, mie3, mie4, diff --git a/src/GPU/pair_morse_gpu.cpp b/src/GPU/pair_morse_gpu.cpp index d929c76930..507edd33f4 100644 --- a/src/GPU/pair_morse_gpu.cpp +++ b/src/GPU/pair_morse_gpu.cpp @@ -155,7 +155,7 @@ void PairMorseGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = mor_gpu_init(atom->ntypes+1, cutsq, morse1, r0, alpha, d0, diff --git a/src/GPU/pair_resquared_gpu.cpp b/src/GPU/pair_resquared_gpu.cpp index c816ad9166..90a7af1d0e 100644 --- a/src/GPU/pair_resquared_gpu.cpp +++ b/src/GPU/pair_resquared_gpu.cpp @@ -203,7 +203,7 @@ void PairRESquaredGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = re_gpu_init(atom->ntypes+1, shape1, well, cutsq, sigma, diff --git a/src/GPU/pair_soft_gpu.cpp b/src/GPU/pair_soft_gpu.cpp index 5a3ad0c577..66bd6deb8f 100644 --- a/src/GPU/pair_soft_gpu.cpp +++ b/src/GPU/pair_soft_gpu.cpp @@ -160,7 +160,7 @@ void PairSoftGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = soft_gpu_init(atom->ntypes+1, cutsq, prefactor, cut, diff --git a/src/GPU/pair_table_gpu.cpp b/src/GPU/pair_table_gpu.cpp index 05b76d9adb..6c5bb48e26 100644 --- a/src/GPU/pair_table_gpu.cpp +++ b/src/GPU/pair_table_gpu.cpp @@ -229,7 +229,7 @@ void PairTableGPU::init_style() } int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = table_gpu_init(atom->ntypes+1, cutsq, table_coeffs, table_data, diff --git a/src/GPU/pair_ufm_gpu.cpp b/src/GPU/pair_ufm_gpu.cpp index f950bf11c3..47a32f7fc2 100644 --- a/src/GPU/pair_ufm_gpu.cpp +++ b/src/GPU/pair_ufm_gpu.cpp @@ -163,7 +163,7 @@ void PairUFMGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = ufml_gpu_init(atom->ntypes+1, cutsq, uf1, uf2, uf3, diff --git a/src/GPU/pair_yukawa_colloid_gpu.cpp b/src/GPU/pair_yukawa_colloid_gpu.cpp index 9322f95f44..3ac5f6c693 100644 --- a/src/GPU/pair_yukawa_colloid_gpu.cpp +++ b/src/GPU/pair_yukawa_colloid_gpu.cpp @@ -168,7 +168,7 @@ void PairYukawaColloidGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = ykcolloid_gpu_init(atom->ntypes+1, cutsq, a, diff --git a/src/GPU/pair_yukawa_gpu.cpp b/src/GPU/pair_yukawa_gpu.cpp index 81304159a0..8558b57cd8 100644 --- a/src/GPU/pair_yukawa_gpu.cpp +++ b/src/GPU/pair_yukawa_gpu.cpp @@ -157,7 +157,7 @@ void PairYukawaGPU::init_style() double cell_size = sqrt(maxcut) + neighbor->skin; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = yukawa_gpu_init(atom->ntypes+1, cutsq, kappa, a, diff --git a/src/GPU/pair_zbl_gpu.cpp b/src/GPU/pair_zbl_gpu.cpp index 93e0588285..97a859a5bf 100644 --- a/src/GPU/pair_zbl_gpu.cpp +++ b/src/GPU/pair_zbl_gpu.cpp @@ -163,7 +163,7 @@ void PairZBLGPU::init_style() cut_globalsq = cut_global * cut_global; int maxspecial=0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) maxspecial=atom->maxspecial; int mnf = 5e-2 * neighbor->oneatom; int success = zbl_gpu_init(atom->ntypes+1, cutsq, sw1, sw2, sw3, sw4, diff --git a/src/KOKKOS/min_kokkos.cpp b/src/KOKKOS/min_kokkos.cpp index 1fcf1a3c48..383b94f67c 100644 --- a/src/KOKKOS/min_kokkos.cpp +++ b/src/KOKKOS/min_kokkos.cpp @@ -462,7 +462,7 @@ double MinKokkos::energy_force(int resetflag) timer->stamp(Timer::PAIR); } - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (force->bond) { atomKK->sync(force->bond->execution_space,force->bond->datamask_read); force->bond->compute(eflag,vflag); diff --git a/src/KOKKOS/npair_kokkos.cpp b/src/KOKKOS/npair_kokkos.cpp index 20e819deaf..5183a2a710 100644 --- a/src/KOKKOS/npair_kokkos.cpp +++ b/src/KOKKOS/npair_kokkos.cpp @@ -189,7 +189,7 @@ void NPairKokkos::build(NeighList *list_) k_bins.sync(); k_atom2bin.sync(); - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (exclude) atomKK->sync(Device,X_MASK|RADIUS_MASK|TYPE_MASK|MASK_MASK|MOLECULE_MASK|TAG_MASK|SPECIAL_MASK); else diff --git a/src/MC/fix_atom_swap.cpp b/src/MC/fix_atom_swap.cpp index 16bb8b1aeb..92671fb637 100644 --- a/src/MC/fix_atom_swap.cpp +++ b/src/MC/fix_atom_swap.cpp @@ -504,7 +504,7 @@ double FixAtomSwap::energy_full() if (force->pair) force->pair->compute(eflag,vflag); - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (force->bond) force->bond->compute(eflag,vflag); if (force->angle) force->angle->compute(eflag,vflag); if (force->dihedral) force->dihedral->compute(eflag,vflag); diff --git a/src/MC/fix_bond_break.cpp b/src/MC/fix_bond_break.cpp index ba19cfaf69..56da69a7bc 100644 --- a/src/MC/fix_bond_break.cpp +++ b/src/MC/fix_bond_break.cpp @@ -80,7 +80,7 @@ FixBondBreak::FixBondBreak(LAMMPS *lmp, int narg, char **arg) : // error check - if (atom->molecular != 1) + if (atom->molecular != Atom::MOLECULAR) error->all(FLERR,"Cannot use fix bond/break with non-molecular systems"); // initialize Marsaglia RNG with processor-unique seed diff --git a/src/MC/fix_bond_create.cpp b/src/MC/fix_bond_create.cpp index bcf7a7a843..c8c0af3a3e 100644 --- a/src/MC/fix_bond_create.cpp +++ b/src/MC/fix_bond_create.cpp @@ -148,7 +148,7 @@ FixBondCreate::FixBondCreate(LAMMPS *lmp, int narg, char **arg) : // error check - if (atom->molecular != 1) + if (atom->molecular != Atom::MOLECULAR) error->all(FLERR,"Cannot use fix bond/create with non-molecular systems"); if (iatomtype == jatomtype && ((imaxbond != jmaxbond) || (inewtype != jnewtype))) diff --git a/src/MC/fix_bond_swap.cpp b/src/MC/fix_bond_swap.cpp index 51334d6149..119c95d842 100644 --- a/src/MC/fix_bond_swap.cpp +++ b/src/MC/fix_bond_swap.cpp @@ -80,7 +80,7 @@ FixBondSwap::FixBondSwap(LAMMPS *lmp, int narg, char **arg) : // error check - if (atom->molecular != 1) + if (atom->molecular != Atom::MOLECULAR) error->all(FLERR,"Cannot use fix bond/swap with non-molecular systems"); // create a new compute temp style diff --git a/src/MC/fix_gcmc.cpp b/src/MC/fix_gcmc.cpp index 1e607c9752..e8087f1344 100644 --- a/src/MC/fix_gcmc.cpp +++ b/src/MC/fix_gcmc.cpp @@ -2318,7 +2318,7 @@ double FixGCMC::energy_full() if (force->pair) force->pair->compute(eflag,vflag); - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (force->bond) force->bond->compute(eflag,vflag); if (force->angle) force->angle->compute(eflag,vflag); if (force->dihedral) force->dihedral->compute(eflag,vflag); diff --git a/src/MC/fix_widom.cpp b/src/MC/fix_widom.cpp index 45f3ee5823..4a06dbafbd 100644 --- a/src/MC/fix_widom.cpp +++ b/src/MC/fix_widom.cpp @@ -1045,7 +1045,7 @@ double FixWidom::energy_full() if (force->pair) force->pair->compute(eflag,vflag); - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (force->bond) force->bond->compute(eflag,vflag); if (force->angle) force->angle->compute(eflag,vflag); if (force->dihedral) force->dihedral->compute(eflag,vflag); diff --git a/src/REPLICA/verlet_split.cpp b/src/REPLICA/verlet_split.cpp index 506d074eca..d3cda94ef1 100644 --- a/src/REPLICA/verlet_split.cpp +++ b/src/REPLICA/verlet_split.cpp @@ -367,7 +367,7 @@ void VerletSplit::run(int n) timer->stamp(Timer::PAIR); } - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (force->bond) force->bond->compute(eflag,vflag); if (force->angle) force->angle->compute(eflag,vflag); if (force->dihedral) force->dihedral->compute(eflag,vflag); diff --git a/src/USER-INTEL/npair_full_bin_intel.cpp b/src/USER-INTEL/npair_full_bin_intel.cpp index 2ef9924a9e..7d16955493 100644 --- a/src/USER-INTEL/npair_full_bin_intel.cpp +++ b/src/USER-INTEL/npair_full_bin_intel.cpp @@ -74,7 +74,7 @@ fbi(NeighList *list, IntelBuffers *buffers) { _fix->nbor_pack_width()); int need_ic = 0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) dminimum_image_check(need_ic, neighbor->cutneighmax, neighbor->cutneighmax, neighbor->cutneighmax); diff --git a/src/USER-INTEL/npair_half_bin_newton_intel.cpp b/src/USER-INTEL/npair_half_bin_newton_intel.cpp index 0d2e6178ea..5b886d3de3 100644 --- a/src/USER-INTEL/npair_half_bin_newton_intel.cpp +++ b/src/USER-INTEL/npair_half_bin_newton_intel.cpp @@ -73,7 +73,7 @@ hbni(NeighList *list, IntelBuffers *buffers) { buffers->grow_list(list, atom->nlocal, comm->nthreads, 0, off_end); int need_ic = 0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) dminimum_image_check(need_ic, neighbor->cutneighmax, neighbor->cutneighmax, neighbor->cutneighmax); diff --git a/src/USER-INTEL/npair_half_bin_newton_tri_intel.cpp b/src/USER-INTEL/npair_half_bin_newton_tri_intel.cpp index 15d4766126..3c3680af03 100644 --- a/src/USER-INTEL/npair_half_bin_newton_tri_intel.cpp +++ b/src/USER-INTEL/npair_half_bin_newton_tri_intel.cpp @@ -73,7 +73,7 @@ hbnti(NeighList *list, IntelBuffers *buffers) { buffers->grow_list(list, atom->nlocal, comm->nthreads, 0, off_end); int need_ic = 0; - if (atom->molecular) + if (atom->molecular != Atom::ATOMIC) dminimum_image_check(need_ic, neighbor->cutneighmax, neighbor->cutneighmax, neighbor->cutneighmax); diff --git a/src/USER-INTEL/verlet_lrt_intel.cpp b/src/USER-INTEL/verlet_lrt_intel.cpp index aef5ad5b45..4fe1cf7f92 100644 --- a/src/USER-INTEL/verlet_lrt_intel.cpp +++ b/src/USER-INTEL/verlet_lrt_intel.cpp @@ -316,7 +316,7 @@ void VerletLRTIntel::run(int n) timer->stamp(Timer::PAIR); } - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (force->bond) force->bond->compute(eflag,vflag); if (force->angle) force->angle->compute(eflag,vflag); if (force->dihedral) force->dihedral->compute(eflag,vflag); diff --git a/src/atom.cpp b/src/atom.cpp index fe260309e2..a300040caa 100644 --- a/src/atom.cpp +++ b/src/atom.cpp @@ -670,7 +670,7 @@ void Atom::create_avec(const std::string &style, int narg, char **arg, int trysu // map style will be reset to array vs hash to by map_init() molecular = avec->molecular; - if (molecular && tag_enable == 0) + if ((molecular != Atom::ATOMIC) && (tag_enable == 0)) error->all(FLERR,"Atom IDs must be used for molecular systems"); if (molecular != Atom::ATOMIC) map_style = MAP_YES; } diff --git a/src/compute_fragment_atom.cpp b/src/compute_fragment_atom.cpp index b0ad8e5e60..5e4f6e92d3 100644 --- a/src/compute_fragment_atom.cpp +++ b/src/compute_fragment_atom.cpp @@ -82,7 +82,7 @@ void ComputeFragmentAtom::init() { if (atom->tag_enable == 0) error->all(FLERR,"Cannot use compute fragment/atom unless atoms have IDs"); - if (!atom->molecular) + if (atom->molecular != Atom::MOLECULAR) error->all(FLERR,"Compute fragment/atom requires a molecular system"); int count = 0; diff --git a/src/compute_pe.cpp b/src/compute_pe.cpp index b7078675e5..db9ed97455 100644 --- a/src/compute_pe.cpp +++ b/src/compute_pe.cpp @@ -83,7 +83,7 @@ double ComputePE::compute_scalar() if (pairflag && force->pair) one += force->pair->eng_vdwl + force->pair->eng_coul; - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (bondflag && force->bond) one += force->bond->energy; if (angleflag && force->angle) one += force->angle->energy; if (dihedralflag && force->dihedral) one += force->dihedral->energy; diff --git a/src/create_bonds.cpp b/src/create_bonds.cpp index e5274d2cf8..494e743c05 100644 --- a/src/create_bonds.cpp +++ b/src/create_bonds.cpp @@ -48,7 +48,7 @@ void CreateBonds::command(int narg, char **arg) error->all(FLERR,"Create_bonds command before simulation box is defined"); if (atom->tag_enable == 0) error->all(FLERR,"Cannot use create_bonds unless atoms have IDs"); - if (atom->molecular != 1) + if (atom->molecular != Atom::MOLECULAR) error->all(FLERR,"Cannot use create_bonds with non-molecular system"); if (narg < 4) error->all(FLERR,"Illegal create_bonds command"); diff --git a/src/create_box.cpp b/src/create_box.cpp index 080483b6a1..000fb42495 100644 --- a/src/create_box.cpp +++ b/src/create_box.cpp @@ -83,7 +83,7 @@ void CreateBox::command(int narg, char **arg) // if molecular, zero out topology info - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { atom->bond_per_atom = 0; atom->angle_per_atom = 0; atom->dihedral_per_atom = 0; diff --git a/src/delete_bonds.cpp b/src/delete_bonds.cpp index d77e9e5f43..5a487743e1 100644 --- a/src/delete_bonds.cpp +++ b/src/delete_bonds.cpp @@ -40,7 +40,7 @@ void DeleteBonds::command(int narg, char **arg) error->all(FLERR,"Delete_bonds command before simulation box is defined"); if (atom->natoms == 0) error->all(FLERR,"Delete_bonds command with no atoms existing"); - if (atom->molecular != 1) + if (atom->molecular != Atom::MOLECULAR) error->all(FLERR,"Cannot use delete_bonds with non-molecular system"); if (narg < 2) error->all(FLERR,"Illegal delete_bonds command"); diff --git a/src/fix_numdiff.cpp b/src/fix_numdiff.cpp index 4be6d07d3d..10926ec440 100644 --- a/src/fix_numdiff.cpp +++ b/src/fix_numdiff.cpp @@ -292,7 +292,7 @@ double FixNumDiff::update_energy() if (pair_compute_flag) force->pair->compute(eflag,0); - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (force->bond) force->bond->compute(eflag,0); if (force->angle) force->angle->compute(eflag,0); if (force->dihedral) force->dihedral->compute(eflag,0); diff --git a/src/info.cpp b/src/info.cpp index f1dc96645b..48c6a941e8 100644 --- a/src/info.cpp +++ b/src/info.cpp @@ -432,7 +432,7 @@ void Info::command(int narg, char **arg) fmt::print(out,"Units = {}\n", update->unit_style); fmt::print(out,"Atom style = {}\n", atom->atom_style); fmt::print(out,"Atom map = {}\n", mapstyles[atom->map_style]); - if (atom->molecular > 0) { + if (atom->molecular != Atom::ATOMIC) { const char *msg; msg = (atom->molecular == Atom::TEMPLATE) ? "template" : "standard"; fmt::print(out,"Molecule type = {}\n",msg); @@ -447,7 +447,7 @@ void Info::command(int narg, char **arg) fmt::print(out," {}", hybrid->keywords[i]); fputc('\n',out); } - if (atom->molecular > 0) { + if (atom->molecular != Atom::ATOMIC) { const char *msg; msg = force->bond_style ? force->bond_style : "none"; fmt::print(out,"Bonds = {:12}, types = {:8}, style = {}\n", diff --git a/src/min.cpp b/src/min.cpp index ca0d508e95..80400f538c 100644 --- a/src/min.cpp +++ b/src/min.cpp @@ -304,7 +304,7 @@ void Min::setup(int flag) if (pair_compute_flag) force->pair->compute(eflag,vflag); else if (force->pair) force->pair->compute_dummy(eflag,vflag); - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (force->bond) force->bond->compute(eflag,vflag); if (force->angle) force->angle->compute(eflag,vflag); if (force->dihedral) force->dihedral->compute(eflag,vflag); @@ -386,7 +386,7 @@ void Min::setup_minimal(int flag) if (pair_compute_flag) force->pair->compute(eflag,vflag); else if (force->pair) force->pair->compute_dummy(eflag,vflag); - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (force->bond) force->bond->compute(eflag,vflag); if (force->angle) force->angle->compute(eflag,vflag); if (force->dihedral) force->dihedral->compute(eflag,vflag); @@ -558,7 +558,7 @@ double Min::energy_force(int resetflag) timer->stamp(Timer::PAIR); } - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (force->bond) force->bond->compute(eflag,vflag); if (force->angle) force->angle->compute(eflag,vflag); if (force->dihedral) force->dihedral->compute(eflag,vflag); diff --git a/src/pair.cpp b/src/pair.cpp index 739d364e57..27a8831eb1 100644 --- a/src/pair.cpp +++ b/src/pair.cpp @@ -221,7 +221,7 @@ void Pair::init() // for manybody potentials // check if bonded exclusions could invalidate the neighbor list - if (manybody_flag && atom->molecular) { + if (manybody_flag && (atom->molecular != Atom::ATOMIC)) { int flag = 0; if (atom->nbonds > 0 && force->special_lj[1] == 0.0 && force->special_coul[1] == 0.0) flag = 1; diff --git a/src/read_data.cpp b/src/read_data.cpp index e8eb90dcb1..a955fbc9fb 100644 --- a/src/read_data.cpp +++ b/src/read_data.cpp @@ -221,7 +221,7 @@ void ReadData::command(int narg, char **arg) iarg += 2; } else if (strcmp(arg[iarg],"extra/bond/per/atom") == 0) { if (iarg+2 > narg) error->all(FLERR,"Illegal read_data command"); - if (! atom->molecular) + if (atom->molecular == Atom::ATOMIC) error->all(FLERR,"No bonds allowed with this atom style"); atom->extra_bond_per_atom = utils::inumeric(FLERR,arg[iarg+1],false,lmp); if (atom->extra_bond_per_atom < 0) @@ -229,7 +229,7 @@ void ReadData::command(int narg, char **arg) iarg += 2; } else if (strcmp(arg[iarg],"extra/angle/per/atom") == 0) { if (iarg+2 > narg) error->all(FLERR,"Illegal read_data command"); - if (! atom->molecular) + if (atom->molecular == Atom::ATOMIC) error->all(FLERR,"No angles allowed with this atom style"); atom->extra_angle_per_atom = utils::inumeric(FLERR,arg[iarg+1],false,lmp); if (atom->extra_angle_per_atom < 0) @@ -237,7 +237,7 @@ void ReadData::command(int narg, char **arg) iarg += 2; } else if (strcmp(arg[iarg],"extra/dihedral/per/atom") == 0) { if (iarg+2 > narg) error->all(FLERR,"Illegal read_data command"); - if (! atom->molecular) + if (atom->molecular == Atom::ATOMIC) error->all(FLERR,"No dihedrals allowed with this atom style"); atom->extra_dihedral_per_atom = utils::inumeric(FLERR,arg[iarg+1],false,lmp); if (atom->extra_dihedral_per_atom < 0) @@ -245,7 +245,7 @@ void ReadData::command(int narg, char **arg) iarg += 2; } else if (strcmp(arg[iarg],"extra/improper/per/atom") == 0) { if (iarg+2 > narg) error->all(FLERR,"Illegal read_data command"); - if (! atom->molecular) + if (atom->molecular == Atom::ATOMIC) error->all(FLERR,"No impropers allowed with this atom style"); atom->extra_improper_per_atom = utils::inumeric(FLERR,arg[iarg+1],false,lmp); if (atom->extra_improper_per_atom < 0) @@ -253,7 +253,7 @@ void ReadData::command(int narg, char **arg) iarg += 2; } else if (strcmp(arg[iarg],"extra/special/per/atom") == 0) { if (iarg+2 > narg) error->all(FLERR,"Illegal read_data command"); - if (! atom->molecular) + if (atom->molecular == Atom::ATOMIC) error->all(FLERR,"No bonded interactions allowed with this atom style"); force->special_extra = utils::inumeric(FLERR,arg[iarg+1],false,lmp); if (force->special_extra < 0) diff --git a/src/replicate.cpp b/src/replicate.cpp index 9e91c30612..6877ec091c 100644 --- a/src/replicate.cpp +++ b/src/replicate.cpp @@ -602,7 +602,7 @@ void Replicate::command(int narg, char **arg) atom->tag[i] += atom_offset; atom->image[i] = image; - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (atom->molecule[i] > 0) atom->molecule[i] += mol_offset; if (atom->molecular == Atom::MOLECULAR) { @@ -704,7 +704,7 @@ void Replicate::command(int narg, char **arg) atom->tag[i] += atom_offset; atom->image[i] = image; - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (atom->molecule[i] > 0) atom->molecule[i] += mol_offset; if (atom->molecular == Atom::MOLECULAR) { diff --git a/src/thermo.cpp b/src/thermo.cpp index 7e14fe37c0..37e610b7b3 100644 --- a/src/thermo.cpp +++ b/src/thermo.cpp @@ -1856,7 +1856,7 @@ void Thermo::compute_eimp() void Thermo::compute_emol() { double tmp = 0.0; - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (force->bond) tmp += force->bond->energy; if (force->angle) tmp += force->angle->energy; if (force->dihedral) tmp += force->dihedral->energy; diff --git a/src/verlet.cpp b/src/verlet.cpp index 5e53daafbb..8d744275d2 100644 --- a/src/verlet.cpp +++ b/src/verlet.cpp @@ -135,7 +135,7 @@ void Verlet::setup(int flag) if (pair_compute_flag) force->pair->compute(eflag,vflag); else if (force->pair) force->pair->compute_dummy(eflag,vflag); - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (force->bond) force->bond->compute(eflag,vflag); if (force->angle) force->angle->compute(eflag,vflag); if (force->dihedral) force->dihedral->compute(eflag,vflag); @@ -197,7 +197,7 @@ void Verlet::setup_minimal(int flag) if (pair_compute_flag) force->pair->compute(eflag,vflag); else if (force->pair) force->pair->compute_dummy(eflag,vflag); - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (force->bond) force->bond->compute(eflag,vflag); if (force->angle) force->angle->compute(eflag,vflag); if (force->dihedral) force->dihedral->compute(eflag,vflag); @@ -312,7 +312,7 @@ void Verlet::run(int n) timer->stamp(Timer::PAIR); } - if (atom->molecular) { + if (atom->molecular != Atom::ATOMIC) { if (force->bond) force->bond->compute(eflag,vflag); if (force->angle) force->angle->compute(eflag,vflag); if (force->dihedral) force->dihedral->compute(eflag,vflag);