Skip to content

Commit 3c331ef

Browse files
committed
1. fix a bug of annotation
1 parent 2418e72 commit 3c331ef

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

source/src_io/write_wfc_realspace.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ namespace Write_Wfc_Realspace
6060
// t0 t1 t2 t3 t4 t5 t6 t7
6161
// -------------------------------->
6262
// rank0 k0 k1 k2 k3 k4 k5
63-
// \ \ \ \ \ \
63+
// \ \ \ \ \ \
6464
// rank1 k0 k1 k2 k3 k4 k5
65-
// \ \ \ \ \ \
65+
// \ \ \ \ \ \
6666
// rank2 k0 k1 k2 k3 k4 k5
6767

6868

tools/opt_orb_pytorch_dpsi/main.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -128,29 +128,29 @@ def cal_delta(VI, V):
128128
for it,il,iu in C_read_index:
129129
C[it][il].grad[:,iu] = 0
130130
opt.step()
131-
# orbital.normalize(
132-
# orbital.generate_orbital(info_element,C,E),
133-
# {it:info_element[it].dr for it in info_element},
134-
# C, flag_norm_C=True)
135-
136-
orb = orbital.generate_orbital(info_element,C_old,E)
137-
if info_opt.cal_smooth:
138-
orbital.smooth_orbital(
139-
orb,
140-
{it:info_element[it].Rcut for it in info_element}, {it:info_element[it].dr for it in info_element},
141-
0.1)
142-
orbital.orth(
131+
#orbital.normalize(
132+
# orbital.generate_orbital(info_element,C,E),
133+
# {it:info_element[it].dr for it in info_element},
134+
# C, flag_norm_C=True)
135+
136+
orb = orbital.generate_orbital(info_element,C_old,E)
137+
if info_opt.cal_smooth:
138+
orbital.smooth_orbital(
143139
orb,
144-
{it:info_element[it].dr for it in info_element})
145-
IO.print_orbital.print_orbital(orb,info_element)
146-
IO.print_orbital.plot_orbital(
147-
orb,
148-
{it:info_element[it].Rcut for it in info_element},
149-
{it:info_element[it].dr for it in info_element})
150-
151-
IO.func_C.write_C("ORBITAL_RESULTS.txt",C_old,Spillage)
152-
153-
print("Time (PyTorch): %s\n"%(time.time()-time_start), flush=True )
140+
{it:info_element[it].Rcut for it in info_element}, {it:info_element[it].dr for it in info_element},
141+
0.1)
142+
orbital.orth(
143+
orb,
144+
{it:info_element[it].dr for it in info_element})
145+
IO.print_orbital.print_orbital(orb,info_element)
146+
IO.print_orbital.plot_orbital(
147+
orb,
148+
{it:info_element[it].Rcut for it in info_element},
149+
{it:info_element[it].dr for it in info_element})
150+
151+
IO.func_C.write_C("ORBITAL_RESULTS.txt",C_old,Spillage)
152+
153+
print("Time (PyTorch): %s\n"%(time.time()-time_start), flush=True )
154154

155155

156156
if __name__=="__main__":

0 commit comments

Comments
 (0)