11 #ifndef DELPHI_EXCEPTIONS_H_
12 #define DELPHI_EXCEPTIONS_H_
14 #include "../interface/exceptions.h"
24 cerr <<
"ERROR OCCURS DUE TO DIELECTRIC IN MEDIUM NUMBER " << iMedium <<
"\" < 1.0 " << endl;
25 cerr <<
"\t DELPHI IS NOT ABLE TO DEAL WITH EPS < 1.0. THEREFORE EXITING... " << endl;
37 cerr <<
"OBJECT TYPES (SPHERE, CYLINDER, CONE AND BOX) ARE NO LONG SUPPORTED IN DELPHI C++" << endl;
38 cerr <<
"\t USE ProNOI TO GENERATE ATOMIC STYLE OBJECTS INSTEAD AND TRY AGAIN... " << endl;
50 cerr <<
"OBJECT " << iObject <<
" IS A MOLECULE WITH NO ATOMS (TOTAL ATOM NUMBER = 0)" << endl;
51 cerr <<
"\t CHECK THE INPUT FILES AND TRY AGAIN... " << endl;
63 cerr <<
"EXITING AS NO BOUNDARY ELEMENTS AND UNIFORM DIELECTRIC EXIT FLAG HAS BEEN SET" << endl;
76 cerr <<
"EXITING AS AUTOC = " << bAutoConverge <<
" AND NO ITERATION NUMBER IS SPECIFIED" << endl;
77 cerr <<
"\t SET \"LINIT\" OR \"NONIT\" NONZERO IN THE PARAMTER FILE AND TRY AGAIN... " << endl;
89 cerr <<
"UNRECOGNIZED STATEMENT \"" << strStatement <<
" = " << strArgument <<
"\" ";
90 cerr <<
"(DEFAULT VALUE IS USED)" << endl;
102 if (30 > iNonIterateNum)
103 cerr <<
"REQUIRES AT LEAST 30 NONLINEAR ITERATIONS ";
105 cerr <<
"THE INPUT NONIT = " << iNonIterateNum <<
" IS OUT OF RANGE [0,10000] ";
107 cerr <<
"(RESET NONIT = " << iNonIterateNum <<
" ITERATIONS)\n";
119 cerr <<
"UNKNOWN WRITE-OUT PHIMAP FILE FORMAT " << strFormat <<
" (DEFAULT PHIMAP FILE FORMAT IS USED)" << endl;
131 cerr <<
"WRITE-OUT OPTION " << strFormat <<
" NO LONGER SUPPORTED!" <<
" (DEFAULT SCRG FORMAT IS USED)" << endl;
143 cerr <<
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " << endl;
144 cerr <<
" The function specifier " << strFuncName <<
" is" << endl;
145 cerr <<
" not recognized. Therefore the function will not be processed " << endl;
146 cerr <<
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " << endl;
156 CMinusDielec(
const delphi_real& fExDielec,
const delphi_real& fInDielec)
158 cerr <<
"NEGATIVE DIELECTRIC CONSTANT(S): OUT = " << fExDielec <<
", IN = " << fInDielec;
159 cerr <<
" (RESET TO BE THEIR ABSOLUTE VALUE(S))" << endl;
171 cerr <<
"MORE THAN 10 CHARACTERS OUT OF THE FIRST 80 CHARACTERS IN THE FILE " << strFile <<
" ARE NOT IN THE LIST OF ASCI \n"
172 <<
"<" << strASCI <<
"> (RESET THE PDB FILE FORMAT TO BE \"UNFORMATTED\")" << endl;
184 cerr <<
"PART OF SYSTEM OUTSIDE THE BOX!" << endl;
196 cerr <<
"CANNOT WRITE AN UNFORMATTED PDB FILE, WHILE READING IN AN UNFORMATTED PDB FILE (THE WRITE OPTION IS DISABLED)" << endl;
198 bOutPdbFormat =
false;
210 cerr <<
"CANNOT WRITE AN UNFORMATTED FRC FILE, WHILE READING IN AN UNFORMATTED PDB FILE (WRITE OPTION IS DISABLED)" << endl;
212 bOutFrcFormat =
false;
224 cerr <<
"THE INPUT CONFRA = " << iConvergeFract <<
" IS OUT OF RANGE [1,100] ";
226 cerr <<
"(RESET TO DEFAULT VALUE CONFRA = " << iConvergeFract <<
")\n";
238 cerr <<
"THE INPUT PERFIL = " << fPercentageFill <<
" IS OUT OF RANGE [20.0,100.0] ";
239 fPercentageFill = 80.0;
240 cerr <<
"(RESET TO DEFAULT VALUE PERFIL = " << fPercentageFill <<
")\n";
252 cerr <<
"THE INPUT CONINT = " << iIterateInterval <<
" IS OUT OF RANGE [1,100] ";
253 iIterateInterval = 10;
254 cerr <<
"(RESET TO DEFAULT VALUE CONINT = " << iIterateInterval <<
")\n";
266 cerr <<
"THE INPUT EXDI = " << fExDielec <<
" IS OUT OF RANGE (0.0,1000.0] ";
268 cerr <<
"(RESET TO DEFAULT VALUE EXDI = " << fExDielec <<
")\n";
280 cerr <<
"SPHERICAL INTERPOLATION OF CHARGES TO GRIDS IS OBSOLETED " ;
281 cerr <<
"(USING LINEAR CUBIC INTERPOLATION INSTEAD) \n";
282 bCrgInterplateType =
false;
294 cerr <<
"THE INPUT GRDCON = " << fGridConverge <<
" IS OUT OF RANGE [0.0,100.0] ";
296 cerr <<
"(RESET TO DEFAULT VALUE GRDCON = " << fGridConverge <<
")\n";
308 cerr <<
"THE INPUT GSIZE = " << iGrid <<
" IS OUT OF RANGE [5,2000] ";
310 cerr <<
"(RESET TO DEFAULT VALUE GSIZE = " << iGrid <<
")\n";
322 cerr <<
"THE INPUT INDI = " << fInDielec <<
" IS OUT OF RANGE [5,2000] ";
324 cerr <<
"(RESET TO DEFAULT VALUE INDI = " << fInDielec <<
")\n";
336 cerr <<
"THE INPUT SALT = " << fSalt <<
" IS OUT OF RANGE [0.0,10.0] ";
338 cerr <<
"(RESET TO DEFAULT VALUE SALT = " << fSalt <<
")\n";
350 cerr <<
"THE INPUT IONRAD = " << fIonRadius <<
" IS OUT OF RANGE [0.0,10.0] ";
352 cerr <<
"(RESET TO DEFAULT VALUE IONRAD = " << fIonRadius <<
")\n";
364 cerr <<
"THE INPUT LINIT = " << iLinIterateNum <<
" IS OUT OF RANGE (10,10000] ";
366 cerr <<
"(RESET TO LINIT = " << iLinIterateNum <<
")\n";
378 cerr <<
"THE INPUT MAXC = " << fMaxc <<
" IS OUT OF RANGE (0.0,1.0) ";
380 cerr <<
"(RESET TO MAXC = " << fMaxc <<
")\n";
392 cerr <<
"THE INPUT PRBRAD = " << fPrbrad <<
" IS OUT OF RANGE [0.0,10.0) ";
394 cerr <<
"(RESET TO PRBRAD = " << fPrbrad <<
")\n";
406 cerr <<
"THE INPUT PRBRAD2 = " << fPrbrad <<
" IS OUT OF RANGE [0.0,10.0) ";
408 cerr <<
"(RESET TO PRBRAD2 = " << fPrbrad <<
")\n";
420 cerr <<
"THE INPUT RELFAC = " << fSpectralRadius <<
" IS OUT OF RANGE (0.0,1.0) ";
421 fSpectralRadius = 0.9975;
422 cerr <<
"(RESET TO DEFAULT VALUE RELFAC = " << fSpectralRadius <<
")\n";
434 cerr <<
"THE INPUT RELPAR = " << fRelaxParam <<
" IS OUT OF RANGE [0.0,2.0] ";
436 cerr <<
"(RESET TO DEFAULT VALUE RELPAR = " << fRelaxParam <<
")\n";
448 cerr <<
"THE INPUT RMSC = " << fRmsc <<
" IS OUT OF RANGE (0.0,1.0) ";
450 cerr <<
"(RESET TO DEFAULT VALUE RMSC = " << fRmsc <<
")\n";
462 cerr <<
"THE INPUT SALT2 = " << fSalt2 <<
" IS OUT OF RANGE [0.0,10.0] ";
464 cerr <<
"(RESET TO DEFAULT VALUE SALT2 = " << fSalt2 <<
")\n";
476 cerr <<
"THE INPUT SCALE = " << fScale <<
" IS OUT OF RANGE (0.0,40.0) ";
478 cerr <<
"(RESET TO DEFAULT VALUE SCALE = " << fScale <<
")\n";
490 cerr <<
"THE INPUT VAL+1 = " << iValPlus1 <<
" IS OUT OF RANGE [1,10] ";
492 cerr <<
"(RESET TO DEFAULT VALUE VAL+1 = " << iValPlus1 <<
")\n";
504 cerr <<
"THE INPUT VAL-1 = " << iValMinus1 <<
" IS OUT OF RANGE [1,10] ";
506 cerr <<
"(RESET TO DEFAULT VALUE VAL-1 = " << iValMinus1 <<
")\n";
518 cerr <<
"THE INPUT VAL+2 = " << iValPlus2 <<
" IS OUT OF RANGE [1,10] ";
520 cerr <<
"(RESET TO DEFAULT VALUE VAL+2 = " << iValPlus2 <<
")\n";
532 cerr <<
"THE INPUT VAL-2 = " << iValMinus2 <<
" IS OUT OF RANGE [1,10] ";
534 cerr <<
"(RESET TO DEFAULT VALUE VAL-2 = " << iValMinus2 <<
")\n";
546 cerr <<
"THE INPUT ATPODS = " << fPotentialUpperBond <<
" IS OUT OF RANGE (1.0,10.0) ";
547 fPotentialUpperBond = 0.5;
548 cerr <<
"(RESET TO DEFAULT VALUE ATPODS = " << fPotentialUpperBond <<
")\n";
560 cerr <<
"THE INPUT TEMPER = " << fTemper <<
" IS OUT OF RANGE [0.0,1000.0] ";
561 fTemper = 297.3342119;
562 cerr <<
"(RESET TO DEFAULT VALUE TEMPER = " << fTemper <<
")\n";
574 cerr <<
"THE INPUT VDROP (X,Y, OR Z) = " << fVdrop <<
" IS OUT OF RANGE [0.0,1000.0] ";
576 cerr <<
"(RESET TO DEFAULT VALUE VDROP = " << fVdrop <<
")\n";
588 cerr <<
"FUNCTION \"" << strFunction <<
"\" HAS NO PARAMETER(S) (SKIP THIS FUNCTION)\n";
600 cerr <<
"UNKNOWN PARAMTER \"" << strParameter <<
"\" IN FUNCTION \"" << strFunction <<
"\" ";
601 cerr <<
"(THIS PARAMETER IS SKIPPED)\n";
613 cerr <<
"STATEMENT \"" << strStatement <<
"\" IS OBSOLETE ";
614 cerr <<
"(TAKING NO ACTION ON THIS STATEMENT)\n";
626 cerr <<
"FUNCTION \"" << strFunction <<
"\" IS OBSOLETE ";
627 cerr <<
"(TAKING NO ACTION ON THIS FUNCTION)\n";
639 cerr <<
"WRITE(OFF): EVERYTHING DESCRIBED IN PREVIOUS WRITE FUNCTION IS TURNED OFF (NO OUTPUT FILE WILL BE PRODUCED)\n";
643 #endif // DELPHI_EXCEPTIONS_H_
Definition: delphi_exceptions.h:317
Definition: delphi_exceptions.h:97
Definition: delphi_exceptions.h:373
Definition: delphi_exceptions.h:84
Definition: delphi_exceptions.h:443
Definition: delphi_exceptions.h:583
Definition: delphi_exceptions.h:261
Definition: delphi_exceptions.h:527
Definition: delphi_exceptions.h:58
Definition: delphi_exceptions.h:359
Definition: delphi_exceptions.h:247
Definition: delphi_exceptions.h:219
Definition: delphi_exceptions.h:401
Definition: delphi_exceptions.h:45
Definition: delphi_exceptions.h:471
Definition: delphi_exceptions.h:153
Definition: delphi_exceptions.h:429
Definition: delphi_exceptions.h:415
Definition: delphi_exceptions.h:555
Definition: exceptions.h:41
Definition: exceptions.h:20
Definition: delphi_exceptions.h:608
Definition: delphi_exceptions.h:595
Definition: delphi_exceptions.h:71
Definition: delphi_exceptions.h:541
Definition: delphi_exceptions.h:513
Definition: delphi_exceptions.h:457
Definition: delphi_exceptions.h:19
Definition: delphi_exceptions.h:569
Definition: delphi_exceptions.h:289
Definition: delphi_exceptions.h:179
Definition: delphi_exceptions.h:331
Definition: delphi_exceptions.h:32
Definition: delphi_exceptions.h:485
Definition: delphi_exceptions.h:233
Definition: delphi_exceptions.h:275
Definition: delphi_exceptions.h:303
Definition: delphi_exceptions.h:634
Definition: delphi_exceptions.h:621
Definition: delphi_exceptions.h:499
Definition: delphi_exceptions.h:138
Definition: delphi_exceptions.h:387
Definition: delphi_exceptions.h:345