Changeset 1846 for branches/newmole/source
- Timestamp:
- 03/15/08 05:40:05 (8 months ago)
- Location:
- branches/newmole/source
- Files:
-
- 12 modified
-
cddrive.cpp (modified) (1 diff)
-
cont_ipoint.cpp (modified) (1 diff)
-
grains_mie.cpp (modified) (1 diff)
-
heat_sum.cpp (modified) (1 diff)
-
hydro_bauman.cpp (modified) (3 diffs)
-
mole_drive.cpp (modified) (1 diff)
-
mole_eval_balance.cpp (modified) (1 diff)
-
mole_h2.cpp (modified) (1 diff)
-
mole_reactions.cpp (modified) (5 diffs)
-
mole_species.cpp (modified) (5 diffs)
-
nemala2.cpp (modified) (1 diff)
-
thirdparty.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/newmole/source/cddrive.cpp
r1800 r1846 523 523 fprintf( ioQQQ, "Sorry.\n" ); 524 524 cdEXIT(EXIT_FAILURE); 525 return 0.0;526 525 } 527 526 } -
branches/newmole/source/cont_ipoint.cpp
r1780 r1846 52 52 energy_ryd ); 53 53 cdEXIT(EXIT_FAILURE); 54 return ipoint_v;55 54 } 56 55 -
branches/newmole/source/grains_mie.cpp
r1830 r1846 3427 3427 ShowMe(); 3428 3428 cdEXIT(EXIT_FAILURE); 3429 return x0;3430 3429 } 3431 3430 -
branches/newmole/source/heat_sum.cpp
r1830 r1846 106 106 /* add in if real molecule and not counted above */ 107 107 if(mole.list[i]->location == NULL && mole.list[i]->charge == 0) 108 xNeutralParticleDensity += mole.list[i]->den;108 xNeutralParticleDensity += (realnum)mole.list[i]->den; 109 109 } 110 110 -
branches/newmole/source/hydro_bauman.cpp
r1780 r1846 1096 1096 cdEXIT(EXIT_FAILURE); 1097 1097 } 1098 return 0.0;1099 1098 } 1100 1099 … … 1282 1281 printf( "This code should be inaccessible\n\n" ); 1283 1282 cdEXIT(EXIT_FAILURE); 1284 return null_mx;1285 1283 } 1286 1284 … … 3454 3452 printf(" This code should be inaccessible\n\n"); 3455 3453 cdEXIT(EXIT_FAILURE); 3456 return 0.0;3457 3454 } 3458 3455 -
branches/newmole/source/mole_drive.cpp
r1835 r1846 786 786 787 787 } 788 return;789 788 } 790 789 -
branches/newmole/source/mole_eval_balance.cpp
r1838 r1846 114 114 if (sp->nElem[nelem] != 0) 115 115 { 116 mole.xMoleChTrRate[nelem][sp->charge][rate->rvector[i]->charge] += rate_deriv[i];116 mole.xMoleChTrRate[nelem][sp->charge][rate->rvector[i]->charge] += (realnum) rate_deriv[i]; 117 117 break; 118 118 } -
branches/newmole/source/mole_h2.cpp
r1830 r1846 114 114 collider_density[4] = dense.xIonDense[ipHYDROGEN][1]; 115 115 /* H3+ - assume that H3+ has same rates as proton */ 116 collider_density[4] += findspecies("H3+")->den;116 collider_density[4] += (realnum)findspecies("H3+")->den; 117 117 118 118 ASSERT( fp_equal(hmi.H2_total ,collider_density[2]+collider_density[3]) ); -
branches/newmole/source/mole_reactions.cpp
r1839 r1846 1693 1693 if (a.reactants[i]<b.reactants[i]) 1694 1694 return true; 1695 else 1695 else if (a.reactants[i]>b.reactants[i]) 1696 1696 return false; 1697 1697 } … … 1700 1700 if (a.products[i]<b.products[i]) 1701 1701 return true; 1702 else 1702 else if (a.products[i]>b.products[i]) 1703 1703 return false; 1704 1704 } … … 1708 1708 struct udfa_reaction_s { 1709 1709 int index; 1710 structformula_species l;1710 formula_species l; 1711 1711 char source; /* Calculated, Estimated, Literature compilation, Measured */ 1712 1712 double a, b, c, trange[2]; /* Overall scale and valid temperature range */ 1713 1713 }; 1714 static map < structformula_species,struct udfa_reaction_s *> udfatab;1714 static map <formula_species,struct udfa_reaction_s *> udfatab; 1715 1715 1716 1716 STATIC void read_data(const char file[], void (*parse)(char *s)) … … 1738 1738 char *f; 1739 1739 struct udfa_reaction_s *r; 1740 map < structformula_species, struct udfa_reaction_s *>::iterator p;1740 map <formula_species, struct udfa_reaction_s *>::iterator p; 1741 1741 unsigned int havespecies = 1, i, n; 1742 1742 /* lgCRPHOT is true for CRPHOT reactions as we change the data … … 1845 1845 STATIC void compare_udfa(struct mole_reaction_s *rate) 1846 1846 { 1847 structformula_species s;1847 formula_species s; 1848 1848 unsigned int n; 1849 map< structformula_species, struct udfa_reaction_s *>::iterator p;1849 map<formula_species, struct udfa_reaction_s *>::iterator p; 1850 1850 struct udfa_reaction_s *u; 1851 1851 -
branches/newmole/source/mole_species.cpp
r1742 r1846 230 230 sp = newspecies("H2Ogrn",MOLECULE,MOLE_ACTIVE,NULL,1.00e-15, -238.9f); 231 231 sp = newspecies("OHgrn ",MOLECULE,MOLE_ACTIVE,NULL,1.00e-15, 38.4f); 232 if ( 1)232 if (0) 233 233 { 234 234 sp = newspecies("Cgrn ",MOLECULE,MOLE_ACTIVE,NULL,1.00e-15, 711.2f); … … 650 650 } 651 651 652 mole.grain_area = den_times_area;653 mole.grain_density = den_grains;652 mole.grain_area = (realnum) den_times_area; 653 mole.grain_density = (realnum) den_grains; 654 654 655 655 double mole_cs = 1e-15; … … 657 657 mole.grain_saturation = 1.0; 658 658 else 659 mole.grain_saturation = 4*den_times_area/(mole_cs*adsorbed_density);659 mole.grain_saturation = (realnum) 4*den_times_area/(mole_cs*adsorbed_density); 660 660 } 661 661 else … … 690 690 if(mole.list[i]->location && mole.list[i]->state == MOLE_ACTIVE) 691 691 { 692 *(mole.list[i]->location) = mole.list[i]->den;692 *(mole.list[i]->location) = (realnum) mole.list[i]->den; 693 693 } 694 694 } … … 765 765 for( nelem=ipHYDROGEN; nelem<LIMELM; ++nelem ) 766 766 { 767 total[nelem] += mole.list[i]->den*mole.list[i]->nElem[nelem];767 total[nelem] += (realnum) mole.list[i]->den*mole.list[i]->nElem[nelem]; 768 768 } 769 769 } -
branches/newmole/source/nemala2.cpp
r1800 r1846 51 51 fprintf(ioQQQ," PROBLEM atmol_popsolve did not find molecular species %li\n",i); 52 52 } 53 abund = SpeciesCurrent->den;53 abund = (realnum) SpeciesCurrent->den; 54 54 } 55 55 else -
branches/newmole/source/thirdparty.cpp
r1800 r1846 1 /* This file contains routines (perhaps in mo dified form) written by third parties.1 /* This file contains routines (perhaps in moified form) written by third parties. 2 2 * Use and distribution of these works are determined by their respective copyrights. */ 3 3 #include "cddefines.h"
