141 SUBROUTINE update_ks_atom(qs_env, ksmat, pmat, forces, tddft, rho_atom_external, &
142 kind_set_external, oce_external, sab_external, kscale, &
143 kintegral, kforce, fscale)
146 TYPE(
dbcsr_p_type),
DIMENSION(*),
INTENT(INOUT) :: ksmat, pmat
147 LOGICAL,
INTENT(IN) :: forces
148 LOGICAL,
INTENT(IN),
OPTIONAL :: tddft
150 POINTER :: rho_atom_external
152 POINTER :: kind_set_external
155 OPTIONAL,
POINTER :: sab_external
156 REAL(kind=
dp),
INTENT(IN),
OPTIONAL :: kscale, kintegral, kforce
157 REAL(kind=
dp),
DIMENSION(2),
INTENT(IN),
OPTIONAL :: fscale
159 CHARACTER(LEN=*),
PARAMETER :: routinen =
'update_ks_atom'
161 INTEGER :: bo(2), dir, handle, i, ia_kind, iac, iat, iatom, ibc, ikind, img, inb, ip, ispin, &
162 ja_kind, jatom, jkind, k_total, ka_kind, kac, kac_hi, kac_lo, katom, kbc, kkind, &
163 ku_alloc, max_gau, max_nb, max_nclist, max_nsgf, n_cont_a, n_cont_b, n_nb, nat, natom, &
164 nimages, nkind, nl_size, nsoctot, nspins, slot
165 INTEGER,
ALLOCATABLE,
DIMENSION(:) :: atom_of_kind, ia_ptr, ia_work, k_offset, &
167 INTEGER,
DIMENSION(3) :: cell_b
168 INTEGER,
DIMENSION(:),
POINTER :: atom_list, list_a, list_b
169 INTEGER,
DIMENSION(:, :, :),
POINTER :: cell_to_index
170 LOGICAL :: dista, do_forces, found, my_tddft, &
172 LOGICAL,
ALLOCATABLE,
DIMENSION(:) :: has_intac, paw_kind
173 LOGICAL,
ALLOCATABLE,
DIMENSION(:, :) :: u_touched
174 REAL(kind=
dp) :: beta, factor1, factor2, ieqj, trace
175 REAL(kind=
dp),
ALLOCATABLE,
DIMENSION(:) :: c_int_h, c_int_s
176 REAL(kind=
dp),
ALLOCATABLE,
DIMENSION(:, :) :: a_matrix, coc, f_katom, k_buf, p_matrix, &
178 REAL(kind=
dp),
DIMENSION(2) :: force_fac
179 REAL(kind=
dp),
DIMENSION(3) :: f_jatom, fb_triple, rac, rbc
180 REAL(kind=
dp),
DIMENSION(3, 3) :: force_tmp, pv_virial_thread
181 REAL(kind=
dp),
DIMENSION(:, :, :),
POINTER :: c_coeff_hh_a, c_coeff_hh_b, &
182 c_coeff_ss_a, c_coeff_ss_b
183 TYPE(
alist_type),
POINTER :: alist_ac, alist_bc
186 TYPE(
cp_2d_r_p_type),
ALLOCATABLE,
DIMENSION(:, :) :: nb_hblk, nb_pblk
197 TYPE(
qs_kind_type),
DIMENSION(:),
POINTER :: my_kind_set
198 TYPE(
rho_atom_coeff),
DIMENSION(:),
POINTER :: int_local_h, int_local_s
205 CALL timeset(routinen, handle)
207 NULLIFY (my_kind_set, atomic_kind_set, force, my_oce, para_env, my_rho_atom, my_sab, dft_control)
210 qs_kind_set=my_kind_set, &
211 atomic_kind_set=atomic_kind_set, &
215 rho_atom_set=my_rho_atom, &
218 dft_control=dft_control)
220 nspins = dft_control%nspins
221 nimages = dft_control%nimages
228 IF (
PRESENT(tddft)) my_tddft = tddft
230 IF (nspins == 1) factor1 = 2.0_dp
231 cpassert(nimages == 1)
233 IF (
PRESENT(kscale))
THEN
234 factor1 = factor1*kscale
235 factor2 = factor2*kscale
237 IF (
PRESENT(kintegral)) factor1 = kintegral
238 IF (
PRESENT(kforce)) factor2 = kforce
240 IF (
PRESENT(fscale)) force_fac(:) = fscale(:)
242 IF (
PRESENT(rho_atom_external)) my_rho_atom => rho_atom_external
243 IF (
PRESENT(kind_set_external)) my_kind_set => kind_set_external
244 IF (
PRESENT(oce_external)) my_oce => oce_external
245 IF (
PRESENT(sab_external)) my_sab => sab_external
248 NULLIFY (cell_to_index)
249 IF (nimages > 1)
THEN
250 CALL get_qs_env(qs_env=qs_env, kpoints=kpoints)
255 CALL get_qs_kind_set(my_kind_set, maxsgf=max_nsgf, maxgtops=max_gau, basis_type=
"GAPW_1C")
259 use_virial = virial%pv_availability .AND. (.NOT. virial%pv_numer)
264 pv_virial_thread(:, :) = 0.0_dp
266 nkind =
SIZE(my_kind_set, 1)
268 associate(mepos => para_env%mepos, num_pe => para_env%num_pe)
271 CALL get_atomic_kind(atomic_kind_set(ikind), atom_list=atom_list, natom=nat)
272 CALL get_qs_kind(my_kind_set(ikind), paw_atom=paw_atom)
276 DO iat = bo(1), bo(2)
277 iatom = atom_list(iat)
279 CALL prj_gather(my_rho_atom(iatom)%ga_Vlocal_gb_h(ispin)%r_coef, &
280 my_rho_atom(iatom)%int_scr_h(ispin)%r_coef, my_kind_set(ikind))
281 CALL prj_gather(my_rho_atom(iatom)%ga_Vlocal_gb_s(ispin)%r_coef, &
282 my_rho_atom(iatom)%int_scr_s(ispin)%r_coef, my_kind_set(ikind))
286 DO ip = 1, merge(nat, 0, num_pe > 1)
287 IF (ip >= bo(1) .AND. ip <= bo(2)) cycle
289 my_rho_atom(atom_list(ip))%int_scr_h(ispin)%r_coef = 0.0_dp
290 my_rho_atom(atom_list(ip))%int_scr_s(ispin)%r_coef = 0.0_dp
295 IF (num_pe > 1)
CALL replicate_int_scr(my_rho_atom, natom, nspins, max_gau, para_env)
298 ALLOCATE (basis_set_list(nkind))
299 ALLOCATE (paw_kind(nkind), has_intac(nkind*nkind))
300 paw_kind(:) = .false.
301 has_intac(:) = .false.
303 CALL get_qs_kind(my_kind_set(ikind), basis_set=basis_set_a, paw_atom=paw_kind(ikind))
304 IF (
ASSOCIATED(basis_set_a))
THEN
305 basis_set_list(ikind)%gto_basis_set => basis_set_a
307 NULLIFY (basis_set_list(ikind)%gto_basis_set)
310 DO ikind = 1, nkind*nkind
311 has_intac(ikind) =
ASSOCIATED(my_oce%intac(ikind)%alist)
314 ku_alloc = max(1, l2_chunk_dp/nspins, max_nsgf*max_gau)
316 DO iac = 1, nkind*nkind
317 IF (.NOT. has_intac(iac)) cycle
318 DO i = 1,
SIZE(my_oce%intac(iac)%alist)
319 max_nclist = max(max_nclist, my_oce%intac(iac)%alist(i)%nclist)
323 cpassert(
ASSOCIATED(my_sab(1)%nlist_task))
324 nl_size = my_sab(1)%nl_size
325 ALLOCATE (ia_ptr(natom + 1), ia_work(natom), slot_order(max(1, nl_size)))
329 task => my_sab(1)%nlist_task(slot)
330 IF (.NOT.
ASSOCIATED(basis_set_list(task%ikind)%gto_basis_set)) cycle
331 IF (.NOT.
ASSOCIATED(basis_set_list(task%jkind)%gto_basis_set)) cycle
332 iatom = min(task%iatom, task%jatom)
333 IF (i == 2) slot_order(ia_work(iatom)) = slot
334 ia_work(iatom) = ia_work(iatom) + 1
338 max_nb = max(1, maxval(ia_work))
340 ia_ptr(iatom + 1) = ia_ptr(iatom) + ia_work(iatom)
341 ia_work(iatom) = ia_ptr(iatom)
360 ALLOCATE (nb_hblk(nspins, max_nb), nb_pblk(nspins, max_nb), k_buf(ku_alloc, nspins), &
361 k_offset(max_nclist), c_int_h(max(1, max_gau*max_nsgf)), &
362 c_int_s(max(1, max_gau*max_nsgf)), coc(max(1, max_gau), max(1, max_gau)), &
363 a_matrix(max(1, max_nsgf), max(1, max_nsgf)), p_matrix(max(1, max_nsgf), max(1, max_nsgf)))
364 IF (forces)
ALLOCATE (u_buf(ku_alloc, nspins), u_touched(max_nclist, nspins), f_katom(3, max_nclist))
380 n_nb = ia_ptr(iatom + 1) - ia_ptr(iatom)
382 task => my_sab(1)%nlist_task(slot_order(ia_ptr(iatom)))
383 ikind = merge(task%jkind, task%ikind, task%iatom > task%jatom)
386 task => my_sab(1)%nlist_task(slot_order(ia_ptr(iatom) + inb - 1))
387 jatom = max(task%iatom, task%jatom)
389 IF (nimages > 1) img = cell_to_index(task%cell(1), task%cell(2), task%cell(3))
392 CALL dbcsr_get_block_p(ksmat(nspins*(img - 1) + ispin)%matrix, iatom, jatom, nb_hblk(ispin, inb)%array, found)
395 CALL dbcsr_get_block_p(pmat(nspins*(img - 1) + ispin)%matrix, iatom, jatom, nb_pblk(ispin, inb)%array, found)
402 IF (.NOT. paw_kind(kkind)) cycle
403 iac = ikind + nkind*(kkind - 1)
404 IF (.NOT. has_intac(iac)) cycle
405 CALL get_alist(my_oce%intac(iac), alist_ac, iatom)
406 IF (.NOT.
ASSOCIATED(alist_ac)) cycle
410 DO WHILE (kac_lo <= alist_ac%nclist)
412 DO kac = kac_lo, alist_ac%nclist
413 clist_a => alist_ac%clist(kac)
414 n_cont_a = clist_a%nsgf_cnt
415 IF (n_cont_a == 0) cycle
416 nsoctot =
SIZE(clist_a%acint, 2)
417 IF (k_total > 0 .AND. k_total + n_cont_a*nsoctot > ku_alloc)
EXIT
418 katom = clist_a%catom
419 k_offset(kac) = k_total + 1
420 k_total = k_total + n_cont_a*nsoctot
421 CALL get_rho_atom(rho_atom=my_rho_atom(katom), int_scr_h=int_local_h, int_scr_s=int_local_s)
422 c_coeff_ss_a => clist_a%acint
423 IF (iatom == katom .AND. all(clist_a%cell == 0))
THEN
424 c_coeff_hh_a => clist_a%achint
426 CALL dgemm(
'N',
'N', n_cont_a, nsoctot, nsoctot, 1.0_dp, c_coeff_hh_a(:, :, 1), n_cont_a, &
427 int_local_h(ispin)%r_coef, nsoctot, 0.0_dp, k_buf(k_offset(kac):, ispin), n_cont_a)
428 CALL dgemm(
'N',
'N', n_cont_a, nsoctot, nsoctot, -1.0_dp, c_coeff_ss_a(:, :, 1), n_cont_a, &
429 int_local_s(ispin)%r_coef, nsoctot, 1.0_dp, k_buf(k_offset(kac):, ispin), n_cont_a)
433 coc(1:nsoctot, 1:nsoctot) = int_local_h(ispin)%r_coef - int_local_s(ispin)%r_coef
434 CALL dgemm(
'N',
'N', n_cont_a, nsoctot, nsoctot, 1.0_dp, c_coeff_ss_a(:, :, 1), n_cont_a, &
435 coc,
SIZE(coc, 1), 0.0_dp, k_buf(k_offset(kac):, ispin), n_cont_a)
441 IF (k_total > 0)
THEN
443 u_touched(kac_lo:kac_hi, 1:nspins) = .false.
444 f_katom(1:3, kac_lo:kac_hi) = 0.0_dp
447 task => my_sab(1)%nlist_task(slot_order(ia_ptr(iatom) + inb - 1))
448 jkind = merge(task%ikind, task%jkind, task%iatom > task%jatom)
449 jatom = max(task%iatom, task%jatom)
450 cell_b = merge(-task%cell, task%cell, task%iatom > task%jatom)
451 ibc = jkind + nkind*(kkind - 1)
452 IF (.NOT. has_intac(ibc)) cycle
453 CALL get_alist(my_oce%intac(ibc), alist_bc, jatom)
454 IF (.NOT.
ASSOCIATED(alist_bc)) cycle
457 ieqj = merge(1.0_dp, 2.0_dp, iatom == jatom)
459 DO kbc = 1, alist_bc%nclist
460 clist_b => alist_bc%clist(kbc)
461 n_cont_b = clist_b%nsgf_cnt
462 IF (n_cont_b == 0) cycle
463 katom = clist_b%catom
464 DO kac = kac_lo, kac_hi
465 IF (alist_ac%clist(kac)%catom /= katom) cycle
466 IF (all(cell_b + clist_b%cell == alist_ac%clist(kac)%cell))
EXIT
468 IF (kac > kac_hi) cycle
469 clist_a => alist_ac%clist(kac)
470 n_cont_a = clist_a%nsgf_cnt
471 IF (n_cont_a == 0) cycle
472 list_a => clist_a%sgf_list
473 list_b => clist_b%sgf_list
475 IF (jatom /= katom .OR. any(clist_b%cell /= 0))
THEN
476 nsoctot =
SIZE(clist_a%acint, 2)
477 c_coeff_ss_b => clist_b%acint
479 CALL dgemm(
'N',
'T', n_cont_a, n_cont_b, nsoctot, factor1, k_buf(k_offset(kac):, ispin), &
480 n_cont_a, c_coeff_ss_b(:, :, 1), n_cont_b, 0.0_dp, a_matrix,
SIZE(a_matrix, 1))
482 SIZE(nb_hblk(ispin, inb)%array, 1), list_a, n_cont_a, list_b, n_cont_b)
485 dista = (iatom /= katom .OR. any(clist_a%cell /= 0))
489 p_matrix,
SIZE(p_matrix, 1), list_a, n_cont_a, list_b, n_cont_b)
490 CALL dgemm(
'T',
'N', n_cont_b, nsoctot, n_cont_a, 1.0_dp, p_matrix,
SIZE(p_matrix, 1), &
491 k_buf(k_offset(kac):, ispin), n_cont_a, 0.0_dp, c_int_s, n_cont_b)
493 beta = merge(1.0_dp, 0.0_dp, u_touched(kac, ispin))
494 u_touched(kac, ispin) = .true.
495 CALL dgemm(
'N',
'N', n_cont_a, nsoctot, n_cont_b, ieqj*force_fac(ispin), p_matrix, &
496 SIZE(p_matrix, 1), c_coeff_ss_b(:, :, 1), n_cont_b, beta, &
497 u_buf(k_offset(kac):, ispin), n_cont_a)
500 trace = factor2*ieqj*force_fac(ispin)* &
501 trace_r_axb(c_int_s, n_cont_b, c_coeff_ss_b(:, :, dir), n_cont_b, n_cont_b, nsoctot)
502 f_katom(dir - 1, kac) = f_katom(dir - 1, kac) + trace
503 fb_triple(dir - 1) = fb_triple(dir - 1) - trace
506 f_jatom = f_jatom + fb_triple
507 IF (use_virial)
CALL virial_pair_force(pv_virial_thread, 1.0_dp, fb_triple, clist_b%rac)
510 c_coeff_ss_a => clist_a%acint
511 IF (iatom == katom .AND. all(clist_a%cell == 0))
THEN
512 c_coeff_hh_a => clist_a%achint
515 c_coeff_hh_a => clist_a%acint
518 c_coeff_hh_b => clist_b%achint
519 c_coeff_ss_b => clist_b%acint
520 nsoctot =
SIZE(c_coeff_ss_a, 2)
521 CALL get_rho_atom(rho_atom=my_rho_atom(katom), int_scr_h=int_local_h, int_scr_s=int_local_s)
522 do_forces = forces .AND. dista
524 CALL add_vhxca(nb_hblk(:, inb), nb_pblk(:, inb), c_coeff_hh_a, c_coeff_hh_b, &
525 c_coeff_ss_a, c_coeff_ss_b, int_local_h, int_local_s, nspins, &
526 iatom, jatom, nsoctot, factor1, list_a, n_cont_a, list_b, n_cont_b, &
527 dista, .false., c_int_h, c_int_s, max(1, max_nsgf), coc, a_matrix, &
528 p_matrix, do_forces, force_tmp, force_fac)
532 rac = alist_ac%clist(kac)%rac
533 rbc = alist_bc%clist(kbc)%rac
535 ia_kind = atom_of_kind(iatom)
536 ja_kind = atom_of_kind(jatom)
537 ka_kind = atom_of_kind(katom)
538 force_tmp = factor2*force_tmp
540 force(kkind)%vhxc_atom(1:3, ka_kind) = force(kkind)%vhxc_atom(1:3, ka_kind) + force_tmp(1:3, 3)
543 force(ikind)%vhxc_atom(1:3, ia_kind) = force(ikind)%vhxc_atom(1:3, ia_kind) + force_tmp(1:3, 1)
546 force(jkind)%vhxc_atom(1:3, ja_kind) = force(jkind)%vhxc_atom(1:3, ja_kind) + force_tmp(1:3, 2)
556 IF (forces .AND. any(f_jatom /= 0.0_dp))
THEN
557 ja_kind = atom_of_kind(jatom)
559 force(jkind)%vhxc_atom(:, ja_kind) = force(jkind)%vhxc_atom(:, ja_kind) + f_jatom
565 ia_kind = atom_of_kind(iatom)
566 DO kac = kac_lo, kac_hi
567 clist_a => alist_ac%clist(kac)
568 n_cont_a = clist_a%nsgf_cnt
569 katom = clist_a%catom
570 IF (any(u_touched(kac, 1:nspins)))
THEN
571 CALL get_rho_atom(rho_atom=my_rho_atom(katom), int_scr_h=int_local_h, int_scr_s=int_local_s)
572 c_coeff_ss_a => clist_a%acint
573 nsoctot =
SIZE(c_coeff_ss_a, 2)
576 IF (.NOT. u_touched(kac, ispin)) cycle
577 coc(1:nsoctot, 1:nsoctot) = int_local_h(ispin)%r_coef - int_local_s(ispin)%r_coef
578 CALL dgemm(
'N',
'N', n_cont_a, nsoctot, nsoctot, 1.0_dp, u_buf(k_offset(kac):, ispin), &
579 n_cont_a, coc,
SIZE(coc, 1), 0.0_dp, c_int_s, n_cont_a)
581 trace = factor2*
trace_r_axb(c_int_s, n_cont_a, c_coeff_ss_a(:, :, dir), &
582 n_cont_a, n_cont_a, nsoctot)
583 f_katom(dir - 1, kac) = f_katom(dir - 1, kac) + trace
584 fb_triple(dir - 1) = fb_triple(dir - 1) - trace
588 force(ikind)%vhxc_atom(:, ia_kind) = force(ikind)%vhxc_atom(:, ia_kind) + fb_triple
590 IF (use_virial)
CALL virial_pair_force(pv_virial_thread, 1.0_dp, fb_triple, clist_a%rac)
592 IF (any(f_katom(:, kac) /= 0.0_dp))
THEN
593 ka_kind = atom_of_kind(katom)
595 force(kkind)%vhxc_atom(:, ka_kind) = force(kkind)%vhxc_atom(:, ka_kind) + f_katom(:, kac)
607 DEALLOCATE (nb_hblk, nb_pblk, k_buf, k_offset, c_int_h, c_int_s, a_matrix, p_matrix, coc)
608 IF (forces)
DEALLOCATE (u_buf, u_touched, f_katom)
626 virial%pv_gapw(1:3, 1:3) = virial%pv_gapw(1:3, 1:3) + pv_virial_thread(1:3, 1:3)
627 virial%pv_virial(1:3, 1:3) = virial%pv_virial(1:3, 1:3) + pv_virial_thread(1:3, 1:3)
630 DEALLOCATE (ia_ptr, slot_order)
632 DEALLOCATE (basis_set_list, paw_kind, has_intac)
634 CALL timestop(handle)
subroutine, public get_qs_env(qs_env, atomic_kind_set, qs_kind_set, cell, super_cell, cell_ref, use_ref_cell, kpoints, dft_control, mos, sab_orb, sab_all, qmmm, qmmm_periodic, mimic, sac_ae, sac_ppl, sac_lri, sap_ppnl, sab_vdw, sab_scp, sap_oce, sab_lrc, sab_se, sab_xtbe, sab_tbe, sab_core, sab_xb, sab_xtb_pp, sab_xtb_nonbond, sab_almo, sab_kp, sab_kp_nosym, sab_cneo, particle_set, energy, force, matrix_h, matrix_h_im, matrix_ks, matrix_ks_im, matrix_vxc, run_rtp, rtp, matrix_h_kp, matrix_h_im_kp, matrix_ks_kp, matrix_ks_im_kp, matrix_vxc_kp, kinetic_kp, matrix_s_kp, matrix_w_kp, matrix_s_ri_aux_kp, matrix_s, matrix_s_ri_aux, matrix_w, matrix_p_mp2, matrix_p_mp2_admm, matrix_vhxc, rho, rho_xc, pw_env, ewald_env, ewald_pw, active_space, mpools, input, para_env, blacs_env, scf_control, rel_control, kinetic, qs_charges, vppl, xcint_weights, rho_core, rho_nlcc, rho_nlcc_g, ks_env, ks_qmmm_env, wf_history, scf_env, local_particles, local_molecules, distribution_2d, dbcsr_dist, molecule_kind_set, molecule_set, subsys, cp_subsys, oce, local_rho_set, rho_atom_set, task_list, task_list_soft, rho0_atom_set, rho0_mpole, rhoz_set, rhoz_cneo_set, ecoul_1c, rho0_s_rs, rho0_s_gs, rhoz_cneo_s_rs, rhoz_cneo_s_gs, do_kpoints, has_unit_metric, requires_mo_derivs, mo_derivs, mo_loc_history, nkind, natom, nelectron_total, nelectron_spin, efield, neighbor_list_id, linres_control, xas_env, virial, cp_ddapc_env, cp_ddapc_ewald, outer_scf_history, outer_scf_ihistory, x_data, et_coupling, dftb_potential, results, se_taper, se_store_int_env, se_nddo_mpole, se_nonbond_env, admm_env, lri_env, lri_density, exstate_env, ec_env, harris_env, dispersion_env, gcp_env, vee, rho_external, external_vxc, mask, mp2_env, bs_env, kg_env, wanniercentres, atprop, ls_scf_env, do_transport, transport_env, v_hartree_rspace, s_mstruct_changed, rho_changed, potential_changed, forces_up_to_date, mscfg_env, almo_scf_env, gradient_history, variable_history, embed_pot, spin_embed_pot, polar_env, mos_last_converged, eeq, rhs, do_rixs, tb_tblite, matrix_metric, matrix_metric_kp)
Get the QUICKSTEP environment.
subroutine, public get_qs_kind(qs_kind, basis_set, basis_type, ncgf, nsgf, all_potential, tnadd_potential, gth_potential, sgp_potential, upf_potential, cneo_potential, se_parameter, dftb_parameter, xtb_parameter, dftb3_param, zatom, zeff, elec_conf, mao, lmax_dftb, alpha_core_charge, ccore_charge, core_charge, core_charge_radius, paw_proj_set, paw_atom, hard_radius, hard0_radius, max_rad_local, covalent_radius, vdw_radius, gpw_type_forced, harmonics, max_iso_not0, max_s_harm, grid_atom, ngrid_ang, ngrid_rad, lmax_rho0, dft_plus_u_atom, l_of_dft_plus_u, n_of_dft_plus_u, u_minus_j, hund_j, u_of_dft_plus_u, j_of_dft_plus_u, alpha_of_dft_plus_u, beta_of_dft_plus_u, j0_of_dft_plus_u, occupation_of_dft_plus_u, dispersion, bs_occupation, magnetization, no_optimize, addel, laddel, naddel, orbitals, max_scf, eps_scf, smear, u_ramping, u_minus_j_target, eps_u_ramping, proj_shell_charge, lr_atom, do_mtlr, u_j_loop, ao_coef, init_u_ramping_each_scf, reltmat, ghost, monovalent, floating, name, element_symbol, pao_basis_size, pao_model_file, pao_potentials, pao_descriptors, nelec)
Get attributes of an atomic kind.