/dports/science/gromacs/gromacs-2021.4/src/gromacs/mdlib/ |
H A D | vcm.cpp | 242 m_add(vcm_t->i, vcm->group_i[g], vcm->group_i[g]); in calc_vcm_grp() 374 if (vcm.mode == ecmLINEAR || vcm.mode == ecmANGULAR in do_stopcm_grp() 485 svmul(tm_1, vcm->group_p[g], vcm->group_v[g]); in process_and_check_cm_grp() 507 cprod(vcm->group_x[g], vcm->group_v[g], jcm); in process_and_check_cm_grp() 519 m_sub(vcm->group_i[g], Icm, vcm->group_i[g]); in process_and_check_cm_grp() 527 mvmul(Icm, vcm->group_j[g], vcm->group_w[g]); in process_and_check_cm_grp() 536 if (vcm->group_mass[g] != 0 && vcm->group_ndf[g] > 0) in process_and_check_cm_grp() 548 vcm->group_name[g], vcm->group_v[g][XX], vcm->group_v[g][YY], in process_and_check_cm_grp() 554 ekrot = 0.5 * iprod(vcm->group_j[g], vcm->group_w[g]); in process_and_check_cm_grp() 563 vcm->group_x[g][YY], vcm->group_x[g][ZZ]); in process_and_check_cm_grp() [all …]
|
H A D | stat.cpp | 272 if (vcm) in global_stat() 274 icm = add_binr(rb, DIM * vcm->nr, vcm->group_p[0]); in global_stat() 275 imass = add_binr(rb, vcm->nr, vcm->group_mass.data()); in global_stat() 278 icj = add_binr(rb, DIM * vcm->nr, vcm->group_j[0]); in global_stat() 279 icx = add_binr(rb, DIM * vcm->nr, vcm->group_x[0]); in global_stat() 280 ici = add_binr(rb, DIM * DIM * vcm->nr, vcm->group_i[0][0]); in global_stat() 370 if (vcm) in global_stat() 372 extract_binr(rb, icm, DIM * vcm->nr, vcm->group_p[0]); in global_stat() 373 extract_binr(rb, imass, vcm->nr, vcm->group_mass.data()); in global_stat() 376 extract_binr(rb, icj, DIM * vcm->nr, vcm->group_j[0]); in global_stat() [all …]
|
/dports/science/lammps/lammps-stable_29Sep2021/src/ |
H A D | fix_thermal_conductivity.cpp | 267 eswap += sbuf[3] * (vcm[0] * (vcm[0] - sbuf[0]) + in end_of_step() 268 vcm[1] * (vcm[1] - sbuf[1]) + in end_of_step() 269 vcm[2] * (vcm[2] - sbuf[2])); in end_of_step() 273 eswap -= rbuf[3] * (vcm[0] * (vcm[0] - rbuf[0]) + in end_of_step() 274 vcm[1] * (vcm[1] - rbuf[1]) + in end_of_step() 275 vcm[2] * (vcm[2] - rbuf[2])); in end_of_step() 292 eswap -= sbuf[3] * (vcm[0] * (vcm[0] - sbuf[0]) + in end_of_step() 293 vcm[1] * (vcm[1] - sbuf[1]) + in end_of_step() 294 vcm[2] * (vcm[2] - sbuf[2])); in end_of_step() 311 eswap += sbuf[3] * (vcm[0] * (vcm[0] - sbuf[0]) + in end_of_step() [all …]
|
H A D | compute_vcm_chunk.cpp | 33 idchunk(nullptr), massproc(nullptr), masstotal(nullptr), vcm(nullptr), vcmall(nullptr) in ComputeVCMChunk() 65 memory->destroy(vcm); in ~ComputeVCMChunk() 117 vcm[i][0] = vcm[i][1] = vcm[i][2] = 0.0; in compute_array() 136 vcm[index][0] += v[i][0] * massone; in compute_array() 137 vcm[index][1] += v[i][1] * massone; in compute_array() 138 vcm[index][2] += v[i][2] * massone; in compute_array() 142 MPI_Allreduce(&vcm[0][0],&vcmall[0][0],3*nchunk,MPI_DOUBLE,MPI_SUM,world); in compute_array() 219 memory->destroy(vcm); in allocate() 224 memory->create(vcm,maxchunk,3,"vcm/chunk:vcm"); in allocate()
|
H A D | fix_heat.cpp | 146 double vsub[3],vcm[3]; in end_of_step() local 179 group->vcm(igroup,masstotal,vcm); in end_of_step() 184 group->vcm(igroup,masstotal,vcm,iregion); in end_of_step() 186 double vcmsq = vcm[0]*vcm[0] + vcm[1]*vcm[1] + vcm[2]*vcm[2]; in end_of_step() 205 vsub[0] = (scale-1.0) * vcm[0]; in end_of_step() 206 vsub[1] = (scale-1.0) * vcm[1]; in end_of_step() 207 vsub[2] = (scale-1.0) * vcm[2]; in end_of_step()
|
/dports/games/alienarena/alienarena-7.66/source/ref_gl/ |
H A D | r_vbo.c | 238 for (cache = vcm.activeVertCache.next; cache != &vcm.activeVertCache; cache = next) in R_VCFindCache() 255 if (!vcm.freeVertCache) in R_VCLoadData() 258 cache = vcm.freeVertCache; in R_VCLoadData() 266 vcm.freeVertCache = vcm.freeVertCache->next; in R_VCLoadData() 313 vcm.freeVertCache = cache; in R_VCFree() 329 for (cache = vcm.activeVertCache.next; cache != &vcm.activeVertCache; cache = next) in R_VCFreeFrame() 356 memset(&vcm, 0, sizeof(vcm)); in VB_VCInit() 359 vcm.activeVertCache.next = &vcm.activeVertCache; in VB_VCInit() 360 vcm.activeVertCache.prev = &vcm.activeVertCache; in VB_VCInit() 362 vcm.freeVertCache = vcm.vertCacheList; in VB_VCInit() [all …]
|
/dports/games/alienarena-data/alienarena-7.66/source/ref_gl/ |
H A D | r_vbo.c | 238 for (cache = vcm.activeVertCache.next; cache != &vcm.activeVertCache; cache = next) in R_VCFindCache() 255 if (!vcm.freeVertCache) in R_VCLoadData() 258 cache = vcm.freeVertCache; in R_VCLoadData() 266 vcm.freeVertCache = vcm.freeVertCache->next; in R_VCLoadData() 329 for (cache = vcm.activeVertCache.next; cache != &vcm.activeVertCache; cache = next) in R_VCFreeFrame() 356 memset(&vcm, 0, sizeof(vcm)); in VB_VCInit() 359 vcm.activeVertCache.next = &vcm.activeVertCache; in VB_VCInit() 360 vcm.activeVertCache.prev = &vcm.activeVertCache; in VB_VCInit() 362 vcm.freeVertCache = vcm.vertCacheList; in VB_VCInit() 365 vcm.vertCacheList[i].next = &vcm.vertCacheList[i+1]; in VB_VCInit() [all …]
|
/dports/net/freerdp/freerdp-2.5.0/libfreerdp/core/ |
H A D | server.c | 569 if (!vcm || !vcm->rdp) in WTSVirtualChannelManagerIsChannelJoined() 769 if (!vcm) in FreeRDP_WTSOpenServerA() 807 free(vcm); in FreeRDP_WTSOpenServerA() 831 if (vcm) in FreeRDP_WTSCloseServer() 853 free(vcm); in FreeRDP_WTSCloseServer() 913 if (!vcm) in FreeRDP_WTSQuerySessionInformationA() 1027 channel->vcm = vcm; in channel_new() 1061 if (!vcm) in FreeRDP_WTSVirtualChannelOpen() 1131 if (!vcm) in FreeRDP_WTSVirtualChannelOpenEx() 1193 if (vcm) in FreeRDP_WTSVirtualChannelOpenEx() [all …]
|
/dports/www/firefox-legacy/firefox-52.8.0esr/media/webrtc/trunk/webrtc/modules/video_coding/main/test/ |
H A D | vcm_payload_sink_factory.cc | 31 rtc::scoped_ptr<VideoCodingModule>* vcm, in VcmPayloadSink() argument 36 assert(vcm); in VcmPayloadSink() 37 assert(vcm->get()); in VcmPayloadSink() 40 vcm_.swap(*vcm); in VcmPayloadSink() 132 rtc::scoped_ptr<VideoCodingModule> vcm( in Create() local 134 if (vcm.get() == NULL) { in Create() 137 if (vcm->InitializeReceiver() < 0) { in Create() 151 if (vcm->RegisterReceiveCodec(&codec, 1) < 0) { in Create() 157 vcm->SetChannelParameters(0, 0, rtt_ms_); in Create() 159 vcm->SetRenderDelay(render_delay_ms_); in Create() [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/media/webrtc/trunk/webrtc/modules/video_coding/test/ |
H A D | vcm_payload_sink_factory.cc | 31 std::unique_ptr<VideoCodingModule>* vcm, in VcmPayloadSink() argument 36 assert(vcm); in VcmPayloadSink() 37 assert(vcm->get()); in VcmPayloadSink() 40 vcm_.swap(*vcm); in VcmPayloadSink() 128 std::unique_ptr<VideoCodingModule> vcm( in Create() local 130 if (vcm.get() == NULL) { in Create() 141 if (vcm->RegisterReceiveCodec(&codec, 1) < 0) { in Create() 147 vcm->SetChannelParameters(0, 0, rtt_ms_); in Create() 149 vcm->SetRenderDelay(render_delay_ms_); in Create() 150 vcm->SetMinimumPlayoutDelay(min_playout_delay_ms_); in Create() [all …]
|
/dports/shells/ast-ksh/ast-ksh93v/src/lib/libvcodex/Vcmisc/ |
H A D | vcmap.c | 436 Vcmap_t *vcm = vcgetmtdata(vc, Vcmap_t*); local 444 if(!(map = vcm->map) ) 456 if((vc->flags&VC_ENCODE) && vcm->inplace) 466 { if(!vcm->inplace) 495 Vcmap_t *vcm; local 502 vcsetmtdata(vc, vcm); 506 { if(!(vcm = vcgetmtdata(vc, Vcmap_t*)) ) 513 vcm->map = arg->data; 515 vcm->inplace = 1; 520 { if((vcm = vcgetmtdata(vc, Vcmap_t*)) ) [all …]
|
/dports/shells/ksh93-devel/ast-cc1bca27/src/lib/libvcodex/Vcmisc/ |
H A D | vcmap.c | 261 Vcmap_t *vcm = vcgetmtdata(vc, Vcmap_t*); local 269 if(!(map = vcm->map) ) 310 Vcmap_t *vcm; local 314 { if(!(vcm = (Vcmap_t*)calloc(1, sizeof(Vcmap_t))) ) 320 vcm->map = arg->data; 323 vcsetmtdata(vc, vcm); 326 { if((vcm = vcgetmtdata(vc, Vcmap_t*)) ) 327 free(vcm);
|
/dports/shells/ksh93/ast-93u/src/lib/libvcodex/Vcmisc/ |
H A D | vcmap.c | 261 Vcmap_t *vcm = vcgetmtdata(vc, Vcmap_t*); local 269 if(!(map = vcm->map) ) 310 Vcmap_t *vcm; local 314 { if(!(vcm = (Vcmap_t*)calloc(1, sizeof(Vcmap_t))) ) 320 vcm->map = arg->data; 323 vcsetmtdata(vc, vcm); 326 { if((vcm = vcgetmtdata(vc, Vcmap_t*)) ) 327 free(vcm);
|
/dports/science/tinker/tinker/source/ |
H A D | mdrest.f | 63 vtot(j) = vtot(j) + vcm(j,i)*weigh 139 mang(1) = mang(1) + (ycm(i)*vcm(3,i) 140 & -zcm(i)*vcm(2,i))*weigh 141 mang(2) = mang(2) + (zcm(i)*vcm(1,i) 142 & -xcm(i)*vcm(3,i))*weigh 143 mang(3) = mang(3) + (xcm(i)*vcm(2,i) 144 & -ycm(i)*vcm(1,i))*weigh 243 vcm(j,i) = vcm(j,i) - vtot(j) 271 vcm(1,i) = vcm(1,i) - vang(2)*zdel + vang(3)*ydel 272 vcm(2,i) = vcm(2,i) - vang(3)*xdel + vang(1)*zdel [all …]
|
/dports/science/lammps/lammps-stable_29Sep2021/lib/poems/ |
H A D | workspace.h | 64 …void LobattoOne(double **&xcm, double **&vcm,double **&omega,double **&torque, double **&fcm, doub… 66 void LobattoTwo(double **&vcm,double **&omega,double **&torque, double **&fcm); 69 …nt& nbody, double *&masstotal, double **&inertia, double **&xcm, double **&vcm, double **&omega, d… 72 …*&masstotal, double **&inertia, double **&xcm, double **&xjoint, double **&vcm, double **&omega, d… 74 …*freelist, double *&masstotal, double **&inertia, double **&xcm, double **&vcm, double **&omega, d… 80 …void RKStep(double **&xcm, double **&vcm,double **&omega,double **&torque, double **&fcm, double *…
|
/dports/science/liggghts/LIGGGHTS-PUBLIC-3.8.0-26-g6e873439/lib/poems/ |
H A D | workspace.h | 70 …void LobattoOne(double **&xcm, double **&vcm,double **&omega,double **&torque, double **&fcm, doub… 72 void LobattoTwo(double **&vcm,double **&omega,double **&torque, double **&fcm); 75 …nt& nbody, double *&masstotal, double **&inertia, double **&xcm, double **&vcm, double **&omega, d… 78 …*&masstotal, double **&inertia, double **&xcm, double **&xjoint, double **&vcm, double **&omega, d… 80 …*freelist, double *&masstotal, double **&inertia, double **&xcm, double **&vcm, double **&omega, d… 86 …void RKStep(double **&xcm, double **&vcm,double **&omega,double **&torque, double **&fcm, double *…
|
/dports/science/lammps/lammps-stable_29Sep2021/src/RIGID/ |
H A D | fix_rigid_nh_small.cpp | 339 akin_t += b->mass*(b->vcm[0]*b->vcm[0] + b->vcm[1]*b->vcm[1] + in setup() 340 b->vcm[2]*b->vcm[2]); in setup() 490 b->vcm[0] *= scale_t[0]; in initial_integrate() 563 akin_t += b->mass*(b->vcm[0]*b->vcm[0] + b->vcm[1]*b->vcm[1] + in initial_integrate() 564 b->vcm[2]*b->vcm[2]); in initial_integrate() 711 akin_t += b->mass*(b->vcm[0]*b->vcm[0] + b->vcm[1]*b->vcm[1] + in final_integrate() 712 b->vcm[2]*b->vcm[2]); in final_integrate() 936 double *vcm,*quat; in compute_scalar() local 946 vcm = body[i].vcm; in compute_scalar() 948 ke_t += body[i].mass * (vcm[0]*vcm[0] + vcm[1]*vcm[1] + in compute_scalar() [all …]
|
H A D | fix_rigid_small.cpp | 831 vcm = body[ibody].vcm; in apply_langevin_thermostat() 1957 vcm[0] = vcm[1] = vcm[2] = 0.0; in setup_bodies_static() 2343 vcm[0] = vcm[1] = vcm[2] = 0.0; in setup_bodies_dynamic() 2355 vcm = b->vcm; in setup_bodies_dynamic() 2824 b->vcm[0] = vcm[0]; in set_molecule() 2825 b->vcm[1] = vcm[1]; in set_molecule() 3342 vcm[0] = vcm[1] = vcm[2] = 0.0; in zero_momentum() 3461 vcm = body[i].vcm; in extract_ke() 3462 ke += body[i].mass * (vcm[0]*vcm[0] + vcm[1]*vcm[1] + vcm[2]*vcm[2]); in extract_ke() 3521 vcm = body[i].vcm; in compute_scalar() [all …]
|
H A D | fix_rigid_nh.cpp | 339 akin_t += masstotal[ibody]*(vcm[ibody][0]*vcm[ibody][0] + in setup() 340 vcm[ibody][1]*vcm[ibody][1] + vcm[ibody][2]*vcm[ibody][2]); in setup() 477 vcm[ibody][0] *= scale_t[0]; in initial_integrate() 478 vcm[ibody][1] *= scale_t[1]; in initial_integrate() 479 vcm[ibody][2] *= scale_t[2]; in initial_integrate() 481 tmp = vcm[ibody][0]*vcm[ibody][0] + vcm[ibody][1]*vcm[ibody][1] + in initial_integrate() 482 vcm[ibody][2]*vcm[ibody][2]; in initial_integrate() 635 vcm[ibody][0] *= scale_t[0]; in final_integrate() 636 vcm[ibody][1] *= scale_t[1]; in final_integrate() 645 tmp = vcm[ibody][0]*vcm[ibody][0] + vcm[ibody][1]*vcm[ibody][1] + in final_integrate() [all …]
|
/dports/science/lammps/lammps-stable_29Sep2021/src/MC/ |
H A D | pair_dsmc.cpp | 460 double delv[3],vcm[3]; in scatter_random() local 477 vcm[0] = (vi[0]+vj[0])*0.5; in scatter_random() 478 vcm[1] = (vi[1]+vj[1])*0.5; in scatter_random() 479 vcm[2] = (vi[2]+vj[2])*0.5; in scatter_random() 480 vi[0] = vcm[0] + delv[0]; in scatter_random() 481 vi[1] = vcm[1] + delv[1]; in scatter_random() 482 vi[2] = vcm[2] + delv[2]; in scatter_random() 483 vj[0] = vcm[0] - delv[0]; in scatter_random() 484 vj[1] = vcm[1] - delv[1]; in scatter_random() 485 vj[2] = vcm[2] - delv[2]; in scatter_random() [all …]
|
/dports/science/lammps/lammps-stable_29Sep2021/src/EXTRA-COMPUTE/ |
H A D | compute_temp_rotate.cpp | 91 double vcm[3],xcm[3],inertia[3][3],angmom[3],omega[3]; in compute_scalar() local 98 group->vcm(igroup,masstotal,vcm); in compute_scalar() 127 vbiasall[i][0] = vcm[0] + dz*omega[1]-dy*omega[2]; in compute_scalar() 128 vbiasall[i][1] = vcm[1] + dx*omega[2]-dz*omega[0]; in compute_scalar() 129 vbiasall[i][2] = vcm[2] + dy*omega[0]-dx*omega[1]; in compute_scalar() 154 double vcm[3],xcm[3],inertia[3][3],angmom[3],omega[3]; in compute_vector() local 161 group->vcm(igroup,masstotal,vcm); in compute_vector() 191 vbiasall[i][0] = vcm[0] + dz*omega[1]-dy*omega[2]; in compute_vector() 192 vbiasall[i][1] = vcm[1] + dx*omega[2]-dz*omega[0]; in compute_vector() 193 vbiasall[i][2] = vcm[2] + dy*omega[0]-dx*omega[1]; in compute_vector()
|
/dports/science/gromacs/gromacs-2021.4/src/gromacs/gmxpreprocess/ |
H A D | gen_maxwell_velocities.cpp | 121 static real calc_cm(int natoms, const real mass[], rvec x[], rvec v[], rvec xcm, rvec vcm, rvec acm… in calc_cm() argument 128 clear_rvec(vcm); in calc_cm() 139 vcm[m] += m0 * v[i][m]; /* c.o.m. velocity */ in calc_cm() 143 cprod(xcm, vcm, a0); in calc_cm() 147 vcm[m] /= tm; in calc_cm() 156 PVEC("vcm", vcm); in calc_cm() 185 rvec xcm, vcm, acm; in stop_cm() local 192 (void)calc_cm(natoms, mass, x, v, xcm, vcm, acm, L); in stop_cm() 199 v[i][m] -= vcm[m]; in stop_cm()
|
/dports/science/lammps/lammps-stable_29Sep2021/src/LATBOLTZ/ |
H A D | fix_lb_rigid_pc_sphere.cpp | 303 vcm[i][0] = vcm[i][1] = vcm[i][2] = 0.0; in FixLbRigidPCSphere() 419 memory->destroy(vcm); in ~FixLbRigidPCSphere() 719 …sum[ibody][0] += (dy * (v[i][2]-vcm[ibody][2]) - dz * (v[i][1]-vcm[ibody][1]))/(dx*dx+dy*dy+dz*dz); in setup() 720 …sum[ibody][1] += (dz * (v[i][0]-vcm[ibody][0]) - dx * (v[i][2]-vcm[ibody][2]))/(dx*dx+dy*dy+dz*dz); in setup() 721 …sum[ibody][2] += (dx * (v[i][1]-vcm[ibody][1]) - dy * (v[i][0]-vcm[ibody][0]))/(dx*dx+dy*dy+dz*dz); in setup() 901 … vcm[ibody][0] = expminusdttimesgamma*(vcm[ibody][0] - ucm[ibody][0] - fcm[ibody][0]*force_factor) in initial_integrate() 905 …vcm[ibody][1] = expminusdttimesgamma*(vcm[ibody][1] - ucm[ibody][1] - fcm[ibody][1]*force_factor) + in initial_integrate() 1516 t += masstotal[i] * (fflag[i][0]*vcm[i][0]*vcm[i][0] + in compute_scalar() 1517 fflag[i][1]*vcm[i][1]*vcm[i][1] + \ in compute_scalar() 1518 fflag[i][2]*vcm[i][2]*vcm[i][2]); in compute_scalar() [all …]
|
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.team/tests/org.eclipse.team.tests.cvs.core/benchmark/ |
H A D | vcmui_benchmark.bat | 23 rem org.eclipse.vcm.core 24 rem org.eclipse.vcm.core.cvs 25 rem org.eclipse.vcm.tests.core 26 rem org.eclipse.vcm.tests.ui 27 rem org.eclipse.vcm.ui 28 rem org.eclipse.vcm.ui.cvs 46 set VMARGS=-Declipse.tests.vcm.properties=%REPOSITORY_PROPERTIES%
|
/dports/science/lammps/lammps-stable_29Sep2021/src/EXTRA-FIX/ |
H A D | fix_viscosity.cpp | 242 double sbuf[2],rbuf[2],vcm; in end_of_step() local 268 vcm = (sbuf[1]*sbuf[0] + rbuf[1]*rbuf[0]) / (sbuf[1] + rbuf[1]); in end_of_step() 269 v[ineg][vdim] = 2.0 * vcm - sbuf[0]; in end_of_step() 270 v[ipos][vdim] = 2.0 * vcm - rbuf[0]; in end_of_step() 271 pswap += rbuf[1] * (vcm - rbuf[0]) - sbuf[1] * (vcm - sbuf[0]); in end_of_step() 280 vcm = (sbuf[1]*sbuf[0] + rbuf[1]*rbuf[0]) / (sbuf[1] + rbuf[1]); in end_of_step() 281 v[ipos][vdim] = 2.0 * vcm - sbuf[0]; in end_of_step() 282 pswap += sbuf[1] * (vcm - sbuf[0]); in end_of_step() 291 vcm = (sbuf[1]*sbuf[0] + rbuf[1]*rbuf[0]) / (sbuf[1] + rbuf[1]); in end_of_step() 292 v[ineg][vdim] = 2.0 * vcm - sbuf[0]; in end_of_step() [all …]
|