Changeset 76b3dc
- Timestamp:
- Apr 24, 2008, 11:14:27 AM (17 years ago)
- Children:
- 464c6d
- Parents:
- 090299
- Files:
-
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
pcp/src/perturbed.c
r090299 r76b3dc 2983 2983 if (P->Par.me == 0) { 2984 2984 time(&seconds); // get current time 2985 sprintf(&suffixchi[0], ".chi.L%i.csv", Lev0->LevelNo); 2986 OpenFile(P, &ChiFile, suffixchi, "a", P->Call.out[ReadOut]); 2987 fprintf(ChiFile,"# magnetic susceptibility tensor chi[01,02,03,10,11,12,20,21,22], seed %i, config %s, run on %s", R->Seed, P->Files.default_path, ctime(&seconds)); 2988 fprintf(ChiFile,"%lg\t", Lev0->ECut/4.); // ECut is in Rydberg 2985 sprintf(&suffixchi[0], ".chi.csv"); 2986 if (Lev0->LevelNo == Lat->MaxLevel-2) { // if first level 2987 OpenFile(P, &ChiFile, suffixchi, "w", P->Call.out[ReadOut]); 2988 fprintf(ChiFile,"# magnetic susceptibility tensor chi[01,02,03,10,11,12,20,21,22], seed %i, config %s, run on %s", R->Seed, P->Files.default_path, ctime(&seconds)); 2989 fprintf(ChiFile,"%lg\t", Lev0->ECut/4.); // ECut is in Rydberg 2990 } else { 2991 OpenFile(P, &ChiFile, suffixchi, "a", P->Call.out[ReadOut]); 2992 fprintf(ChiFile,"%lg\t", Lev0->ECut/4.); // ECut is in Rydberg 2993 } 2989 2994 for (in=0;in<NDIM*NDIM;in++) 2990 2995 fprintf(ChiFile,"%e\t", Chi[in]); … … 3035 3040 time(&seconds); // get current time 3036 3041 sprintf(&suffixchi[0], ".chi_PAS.csv"); 3037 if (Lev0->LevelNo == Lat->MaxLevel-2) { 3042 if (Lev0->LevelNo == Lat->MaxLevel-2) { // if first level 3038 3043 OpenFile(P, &ChiFile, suffixchi, "w", P->Call.out[ReadOut]); 3039 3044 fprintf(ChiFile,"# magnetic susceptibility tensor chi[00,11,22] Principal Axis System, seed %i, config %s, run on %s", R->Seed, P->Files.default_path, ctime(&seconds)); 3040 fprintf(ChiFile,"# Ecut\tChi_XX\t\tChi_YY\t\tChi_ZZ\t Shielding\tanisotropy\tasymmetry\tS\t\tA\n");3045 fprintf(ChiFile,"# Ecut\tChi_XX\t\tChi_YY\t\tChi_ZZ\tsusceptib\tanisotropy\tasymmetry\tS\t\tA\n"); 3041 3046 } else 3042 3047 OpenFile(P, &ChiFile, suffixchi, "a", P->Call.out[ReadOut]); … … 3182 3187 // output tensor to file 3183 3188 if (P->Par.me == 0) { 3184 sprintf(suffixsigma, ".sigma_chi_rezi.L%i.csv", Lev0->LevelNo); 3185 OpenFile(P, &SigmaFile, suffixsigma, "a", P->Call.out[ReadOut]); 3186 fprintf(SigmaFile,"# chemical shielding tensor sigma_rezi[01,02,03,10,11,12,20,21,22], seed %i, config %s, run on %s", R->Seed, P->Files.default_path, ctime(&seconds)); 3187 fprintf(SigmaFile,"%lg\t", Lev0->ECut/4.); 3189 sprintf(suffixsigma, ".sigma_chi.csv"); 3190 if (Lev0->LevelNo == Lat->MaxLevel-2) { // if first level 3191 OpenFile(P, &SigmaFile, suffixsigma, "w", P->Call.out[ReadOut]); 3192 fprintf(SigmaFile,"# chemical shielding tensor sigma_rezi[01,02,03,10,11,12,20,21,22], seed %i, config %s, run on %s", R->Seed, P->Files.default_path, ctime(&seconds)); 3193 fprintf(SigmaFile,"%lg\t", Lev0->ECut/4.); 3194 } else { 3195 OpenFile(P, &SigmaFile, suffixsigma, "a", P->Call.out[ReadOut]); 3196 fprintf(SigmaFile,"%lg\t", Lev0->ECut/4.); 3197 } 3188 3198 for (in=0;in<NDIM;in++) 3189 3199 for (dex=0;dex<NDIM;dex++) … … 3209 3219 // output tensor to file 3210 3220 if (P->Par.me == 0) { 3211 sprintf(suffixsigma, ".sigma_i%i_%s_rezi.L%i.csv", ion, I->I[it].Symbol, Lev0->LevelNo); 3212 OpenFile(P, &SigmaFile, suffixsigma, "a", P->Call.out[ReadOut]); 3213 fprintf(SigmaFile,"# chemical shielding tensor sigma_rezi[01,02,03,10,11,12,20,21,22], seed %i, config %s, run on %s", R->Seed, P->Files.default_path, ctime(&seconds)); 3214 fprintf(SigmaFile,"%lg\t", Lev0->ECut/4.); // ECut is in Rydberg 3221 sprintf(suffixsigma, ".sigma_i%i_%s.csv", ion, I->I[it].Symbol); 3222 if (Lev0->LevelNo == Lat->MaxLevel-2) { // if first level 3223 OpenFile(P, &SigmaFile, suffixsigma, "w", P->Call.out[ReadOut]); 3224 fprintf(SigmaFile,"# chemical shielding tensor sigma_rezi[01,02,03,10,11,12,20,21,22], seed %i, config %s, run on %s", R->Seed, P->Files.default_path, ctime(&seconds)); 3225 fprintf(SigmaFile,"%lg\t", Lev0->ECut/4.); // ECut is in Rydberg 3226 } else { 3227 OpenFile(P, &SigmaFile, suffixsigma, "a", P->Call.out[ReadOut]); 3228 fprintf(SigmaFile,"%lg\t", Lev0->ECut/4.); // ECut is in Rydberg 3229 } 3215 3230 for (in=0;in<NDIM;in++) 3216 3231 for (dex=0;dex<NDIM;dex++) … … 3425 3440 // output tensor to file 3426 3441 if (P->Par.me == 0) { 3427 sprintf(&suffixmoment[0], ".moment_i%i_%s.L%i.csv", ion, I->I[it].Symbol, Lev0->LevelNo); 3428 OpenFile(P, &MomentFile, suffixmoment, "a", P->Call.out[ReadOut]); 3429 fprintf(MomentFile,"# magnetic tensor moment[01,02,03,10,11,12,20,21,22], seed %i, config %s, run on %s", R->Seed, P->Files.default_path, ctime(&seconds)); 3430 fprintf(MomentFile,"%lg\t", Lev0->ECut/4.); // ECut is in Rydberg 3442 sprintf(suffixmoment, ".moment_i%i_%s.csv", ion, I->I[it].Symbol); 3443 if (Lev0->LevelNo == Lat->MaxLevel-2) { // if first level 3444 OpenFile(P, &MomentFile, suffixmoment, "w", P->Call.out[ReadOut]); 3445 fprintf(MomentFile,"# magnetic tensor moment[01,02,03,10,11,12,20,21,22], seed %i, config %s, run on %s", R->Seed, P->Files.default_path, ctime(&seconds)); 3446 fprintf(MomentFile,"%lg\t", Lev0->ECut/4.); // ECut is in Rydberg 3447 } else { 3448 OpenFile(P, &MomentFile, suffixmoment, "a", P->Call.out[ReadOut]); 3449 fprintf(MomentFile,"%lg\t", Lev0->ECut/4.); // ECut is in Rydberg 3450 } 3431 3451 for (in=0;in<NDIM*NDIM;in++) 3432 3452 fprintf(MomentFile,"%e\t", Moment[in]); … … 3479 3499 fprintf(stderr,"A : %e\n", A); 3480 3500 fprintf(stderr,"==================\n"); 3481 } 3501 } 3502 if (P->Par.me == 0) { 3503 sprintf(suffixmoment, ".moment_i%i_%s_PAS.csv", ion, I->I[it].Symbol); 3504 if (Lev0->LevelNo == Lat->MaxLevel-2) { 3505 OpenFile(P, &MomentFile, suffixmoment, "w", P->Call.out[ReadOut]); 3506 fprintf(MomentFile,"# magnetic moment M[00,11,22] Principal Axis System, seed %i, config %s, run on %s", R->Seed, P->Files.default_path, ctime(&seconds)); 3507 fprintf(MomentFile,"# Ecut\tM_XX\tM_YY\tM_ZZ\tMagnitude\tanisotropy\tasymmetry\tS\t\tA\n"); 3508 } else 3509 OpenFile(P, &MomentFile, suffixmoment, "a", P->Call.out[ReadOut]); 3510 fprintf(MomentFile,"%lg\t", Lev0->ECut/4.); // ECut is in Rydberg 3511 for (i=0;i<NDIM;i++) 3512 fprintf(MomentFile,"%lg\t", gsl_vector_get(eval,i)); 3513 fprintf(MomentFile,"%lg\t%lg\t%lg\t%lg\t%lg\t\n", iso, delta_moment, eta, S, A); 3514 fclose(MomentFile); 3515 } 3482 3516 gsl_vector_free(eval); 3483 3517 } -
util/CreateFromXYZ.sh.in
r090299 r76b3dc 9 9 #pfad="${2}/`basename ${1}`" 10 10 pfad="$2" 11 molecuilder="/home/heber/workspace/pcp_alternate/bin/" 12 pseudopot="/home/heber/workspace/pcp_alternate/defaults/pseudopot" 11 exec_prefix=@prefix@ 12 molecuilder=@bindir@ 13 pseudopot="${exec_prefix}/defaults/pseudopot" 13 14 14 15 echo "Target dir is ${pfad}, using xyz file ${mol}." -
util/dynamicANOVA.sh.in
r090299 r76b3dc 5 5 MPIRUN="/opt/packages/mpichgm-1.2.7..15/bin/mpirun.ch_gm" 6 6 #MPIRUN="/usr/bin/mpirun.mpich" 7 MOLECUILDER="/home/heber/workspace/espack/pcp/bin/molecuilder" 8 JOINER="/home/heber/workspace/espack/pcp/bin/joiner" 9 PCP="/home/heber/workspace/espack/pcp/bin/pcp" 7 exec_prefix=@prefix@ 8 MOLECUILDER=@bindir@/molecuilder 9 JOINER=@bindir@/joiner 10 PCP=@bindir@/pcp 10 11 11 12 function check {
Note:
See TracChangeset
for help on using the changeset viewer.