@@ -52,7 +52,7 @@ void define_fcc_cell(UnitCell& ucell)
5252 ucell.orbital_fn = new std::string[2 ];
5353 ucell.orbital_fn [0 ] = " ../../../../tests/PP_ORB/Si_gga_8au_100Ry_2s2p1d.orb" ;
5454 ucell.orbital_fn [1 ] = " ../../../../tests/PP_ORB/C_gga_8au_100Ry_2s2p1d.orb" ;
55- ucell.pseudo_fn = new std::string[ 2 ] ;
55+ ucell.pseudo_fn . resize ( 2 ) ;
5656 ucell.pseudo_fn [0 ] = " ../../../../tests/PP_ORB/Si_dojo_soc.upf" ;
5757 ucell.pseudo_fn [1 ] = " ../../../../tests/PP_ORB/C.LDA.UPF" ;
5858
@@ -88,7 +88,7 @@ void define_sc_cell(UnitCell& ucell)
8888 ucell.GGT = ucell.G * ucell.GT ;
8989 ucell.orbital_fn = new std::string[1 ];
9090 ucell.orbital_fn [0 ] = " ../../../../tests/PP_ORB/Si_gga_8au_100Ry_2s2p1d.orb" ;
91- ucell.pseudo_fn = new std::string[ 1 ] ;
91+ ucell.pseudo_fn . resize ( 1 ) ;
9292 ucell.pseudo_fn [0 ] = " ../../../../tests/PP_ORB/Si_dojo_soc.upf" ;
9393
9494 PARAM.sys .global_out_dir = " ./" ;
@@ -309,7 +309,7 @@ TEST_F(toQOTest, RadialCollectionIndexing)
309309
310310 tqo.build_ao (ucell.ntype ,
311311 " ./" ,
312- ucell.pseudo_fn ,
312+ ucell.pseudo_fn . data () ,
313313 {},
314314 PARAM.input .qo_thr ,
315315 GlobalV::ofs_running,
@@ -363,7 +363,7 @@ TEST_F(toQOTest, BuildHydrogenMinimal)
363363 tqo.read_structures (&ucell, kvecs_d, 0 , 1 );
364364 tqo.build_ao (ucell.ntype ,
365365 " ./" ,
366- ucell.pseudo_fn ,
366+ ucell.pseudo_fn . data () ,
367367 {},
368368 PARAM.input .qo_thr ,
369369 GlobalV::ofs_running,
@@ -416,7 +416,7 @@ TEST_F(toQOTest, ScanSupercellForAtom)
416416 }
417417 tqo.build_ao (ucell.ntype ,
418418 " ./" ,
419- ucell.pseudo_fn ,
419+ ucell.pseudo_fn . data () ,
420420 {},
421421 PARAM.input .qo_thr ,
422422 GlobalV::ofs_running,
@@ -465,7 +465,7 @@ TEST_F(toQOTest, ScanSupercellFCC)
465465 0 );
466466 tqo.build_ao (ucell.ntype ,
467467 " ./" ,
468- ucell.pseudo_fn ,
468+ ucell.pseudo_fn . data () ,
469469 {},
470470 PARAM.input .qo_thr ,
471471 GlobalV::ofs_running,
@@ -491,7 +491,7 @@ TEST_F(toQOTest, ScanSupercellSC1)
491491 PARAM.input .qo_thr = 1e-6 ;
492492 tqo.build_ao (ucell.ntype ,
493493 " ./" ,
494- ucell.pseudo_fn ,
494+ ucell.pseudo_fn . data () ,
495495 {},
496496 PARAM.input .qo_thr ,
497497 GlobalV::ofs_running,
@@ -521,7 +521,7 @@ TEST_F(toQOTest, AllocateOvlpMinimal)
521521 }
522522 tqo.build_ao (ucell.ntype ,
523523 " ./" ,
524- ucell.pseudo_fn ,
524+ ucell.pseudo_fn . data () ,
525525 {},
526526 PARAM.input .qo_thr ,
527527 GlobalV::ofs_running,
@@ -874,7 +874,7 @@ TEST_F(toQOTest, BuildHydrogenFull)
874874 PARAM.input .qo_thr = 1e-10 ;
875875 tqo.build_ao (ucell.ntype ,
876876 " ./" ,
877- ucell.pseudo_fn ,
877+ ucell.pseudo_fn . data () ,
878878 {},
879879 PARAM.input .qo_thr ,
880880 GlobalV::ofs_running,
@@ -1061,7 +1061,7 @@ TEST_F(toQOTest, BuildPswfcPartial1)
10611061 tqo.read_structures (&ucell, kvecs_d, 0 , 1 );
10621062 tqo.build_ao (ucell.ntype ,
10631063 " ./" ,
1064- ucell.pseudo_fn ,
1064+ ucell.pseudo_fn . data () ,
10651065 PARAM.input .qo_screening_coeff ,
10661066 PARAM.input .qo_thr ,
10671067 GlobalV::ofs_running,
@@ -1081,7 +1081,7 @@ TEST_F(toQOTest, BuildPswfcPartial2)
10811081 tqo.read_structures (&ucell, kvecs_d, 0 , 1 );
10821082 tqo.build_ao (ucell.ntype ,
10831083 " ./" ,
1084- ucell.pseudo_fn ,
1084+ ucell.pseudo_fn . data () ,
10851085 PARAM.input .qo_screening_coeff ,
10861086 PARAM.input .qo_thr ,
10871087 GlobalV::ofs_running,
@@ -1101,7 +1101,7 @@ TEST_F(toQOTest, BuildPswfcPartial3)
11011101 tqo.read_structures (&ucell, kvecs_d, 0 , 1 );
11021102 tqo.build_ao (ucell.ntype ,
11031103 " ./" ,
1104- ucell.pseudo_fn ,
1104+ ucell.pseudo_fn . data () ,
11051105 PARAM.input .qo_screening_coeff ,
11061106 PARAM.input .qo_thr ,
11071107 GlobalV::ofs_running,
@@ -1122,7 +1122,7 @@ TEST_F(toQOTest, BuildPswfcAll)
11221122 tqo.read_structures (&ucell, kvecs_d, 0 , 1 );
11231123 tqo.build_ao (ucell.ntype ,
11241124 " ./" ,
1125- ucell.pseudo_fn ,
1125+ ucell.pseudo_fn . data () ,
11261126 PARAM.input .qo_screening_coeff ,
11271127 PARAM.input .qo_thr ,
11281128 GlobalV::ofs_running,
@@ -1149,7 +1149,7 @@ TEST_F(toQOTest, ScanSupercellSC2)
11491149 PARAM.input .qo_thr = 1e-6 ;
11501150 tqo.build_ao (ucell.ntype ,
11511151 " ./" ,
1152- ucell.pseudo_fn ,
1152+ ucell.pseudo_fn . data () ,
11531153 PARAM.input .qo_screening_coeff ,
11541154 PARAM.input .qo_thr ,
11551155 GlobalV::ofs_running,
@@ -1175,7 +1175,7 @@ TEST_F(toQOTest, ScanSupercellSC3)
11751175 PARAM.input .qo_thr = 1e-6 ;
11761176 tqo.build_ao (ucell.ntype ,
11771177 " ./" ,
1178- ucell.pseudo_fn ,
1178+ ucell.pseudo_fn . data () ,
11791179 PARAM.input .qo_screening_coeff ,
11801180 PARAM.input .qo_thr ,
11811181 GlobalV::ofs_running,
@@ -1202,7 +1202,7 @@ TEST_F(toQOTest, ScanSupercellSC4)
12021202 PARAM.input .qo_thr = 1e-6 ;
12031203 tqo.build_ao (ucell.ntype ,
12041204 " ./" ,
1205- ucell.pseudo_fn ,
1205+ ucell.pseudo_fn . data () ,
12061206 PARAM.input .qo_screening_coeff ,
12071207 PARAM.input .qo_thr ,
12081208 GlobalV::ofs_running,
0 commit comments