Changeset 685
- Timestamp:
- 12/05/06 18:14:43 (21 months ago)
- Location:
- trunk
- Files:
-
- 7 modified
- 1 moved
-
scripts/dayslow_master.pl (modified) (1 diff)
-
source/atmdat_adfa.cpp (modified) (2 diffs)
-
source/date.h (modified) (1 diff)
-
source/hot_issues.txt (modified) (1 diff)
-
source/ion_solver.cpp (modified) (6 diffs)
-
source/rt_stark.cpp (modified) (1 diff)
-
tsuite/auto/blr_n09_p18_Z20.in (modified) (1 diff)
-
tsuite/auto/limit_hi_ion.in (moved) (moved from trunk/tsuite/auto/func_hi_ion.in) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/dayslow_master.pl
r324 r685 67 67 #$exe_org = "$c:/projects/cloudy/trunk/release/trunk.exe"; 68 68 # use fast gcc exe 69 $exe_org = "$c:/projects/cloudy/trunk/gcc/release/cloudy_gcc.exe"; 69 $exe_gcc = "$c:/projects/cloudy/trunk/gcc/release/cloudy_gcc.exe"; 70 $exe_icl = "$c:/projects/cloudy/trunk/icl/release/cloudy_icl.exe"; 71 $exe_org = $exe_icl; 70 72 system("cp $exe_org $out_dir "); 71 73 #$exe = "c:/projects/Cloudy/trunk/release/trunk.exe"; 72 74 #$exe = "$out_dir"."trunk.exe"; 73 $exe = "$out_dir"."cloudy_gcc.exe"; 75 $exe_gcc = "$out_dir"."cloudy_gcc.exe"; 76 $exe_icl = "$out_dir"."cloudy_icl.exe"; 77 $exe = $exe_icl; 74 78 printf(ioLOG "exe is $exe\n"); 75 79 -
trunk/source/atmdat_adfa.cpp
r682 r685 1 1 /* This file is part of Cloudy and is copyright (C)1978-2006 by Gary J. Ferland 2 2 * For conditions of distribution and use see copyright notice in license.txt */ 3 /*atmdat_phfit derive photoionization cross sect oins for first 30 elements */3 /*atmdat_phfit derive photoionization cross sections for first 30 elements */ 4 4 #include "cddefines.h" 5 5 #include "physconst.h" … … 63 63 64 64 bool lgErr = false; 65 long i , j, k, n;65 long i=-1, j=-1, k=-1, n; 66 66 67 67 lgErr = lgErr || ( fscanf( io, "%ld", &i ) != 1 ); -
trunk/source/date.h
r652 r685 8 8 * in the morning so no date conflict happens */ 9 9 #define YEAR 106 10 #define MONTH 1 011 #define DAY 2910 #define MONTH 11 11 #define DAY 5 -
trunk/source/hot_issues.txt
r636 r685 1 1 HOT ISSUES 2 3 sim blr_n09_p18_Z20.in has very different convergence properties for PvH than here. cause by r622 2 4 3 5 code review - behar - gu uta data read in atmdat_readin.cpp -
trunk/source/ion_solver.cpp
r652 r685 45 45 int lgNegPop; 46 46 static int lgMustMalloc=TRUE; 47 static double *sink, *source ;47 static double *sink, *source , *sourcesave; 48 48 int32 nerror; 49 49 static int32 *ipiv; … … 221 221 BadMalloc(); 222 222 if( (source=(double*)MALLOC( (sizeof(double)*(unsigned)ncell ))) == NULL ) 223 BadMalloc(); 224 if( (sourcesave=(double*)MALLOC( (sizeof(double)*(unsigned)ncell ))) == NULL ) 223 225 BadMalloc(); 224 226 if( (ipiv=(int32*)MALLOC( (sizeof(int32)*(unsigned)ncell ))) == NULL ) … … 514 516 MAT( xmatsave, i, j ) = MAT( xmat, i, j ); 515 517 } 518 sourcesave[i] = source[i]; 516 519 } 517 520 … … 523 526 * will not be removed, a possible source of error, but they must not 524 527 * have been significant, given that the molecular fraction is so small */ 528 if( !lgHomogeneous && ion_range==2 ) 529 { 530 /* solve algebraically */ 531 double a = MAT( xmatsave, 0, 0 ), 532 b = MAT( xmatsave, 1, 0 ) , 533 c = MAT( xmatsave, 0, 1 ) , 534 d = MAT( xmatsave, 1, 1 ); 535 b = SDIV(b); 536 d = SDIV(d); 537 double ratio1 = a/b , ratio2 = c/d , fratio1=fabs(a/b),fratio2=fabs(c/d); 538 if( fabs(ratio1-ratio2)/MAX2(fratio1,fratio2) <DBL_EPSILON*1e4 ) 539 { 540 abund_total = SDIV( dense.gas_phase[nelem] - dense.xMolecules[nelem] ); 541 lgHomogeneous = TRUE; 542 } 543 } 544 # if 0 525 545 if( nelem==ipHYDROGEN && 526 546 fabs(dense.xMolecules[nelem]) / SDIV(dense.gas_phase[ipHYDROGEN]) <DBL_EPSILON*100. ) 527 547 { 548 abund_total = SDIV( dense.gas_phase[nelem] - dense.xMolecules[nelem] ); 528 549 lgHomogeneous = TRUE; 529 550 } 551 # endif 530 552 531 553 /* this is true if no source terms … … 566 588 } 567 589 590 for( i=0; i< ion_range; ++i ) 591 { 592 for( j=0; j< ion_range; ++j ) 593 { 594 MAT( xmatsave, i, j ) = MAT( xmat, i, j ); 595 } 596 sourcesave[i] = source[i]; 597 } 598 568 599 if ( FALSE && nelem == ipHYDROGEN && dynamics.lgAdvection&& iteration>1 ) 569 600 { … … 728 759 enum {DEBUG_LOC=FALSE}; 729 760 /*@+redef@*/ 730 if( DEBUG_LOC && (nzone >380 ) &&nelem == ipHYDROGEN )731 { 732 fprintf(ioQQQ,"debuggg \t%.2f\t%.4e\t%.4e\tIon\t%.3e\tRec\t%.3e\n",761 if( DEBUG_LOC && nelem == ipHYDROGEN ) 762 { 763 fprintf(ioQQQ,"debuggg ion_solver1 \t%.2f\t%.4e\t%.4e\tIon\t%.3e\tRec\t%.3e\n", 733 764 fnzone, 734 765 phycon.te, -
trunk/source/rt_stark.cpp
r604 r685 58 58 * with negative optical depths, 59 59 * NB did not understand why neg optical depths started */ 60 aa = pow(SDIV(EmisLines[ipH_LIKE][ipHYDROGEN][ipH2p][ipH1s].TauIn),-0.75f); 60 aa = (float)SDIV(EmisLines[ipH_LIKE][ipHYDROGEN][ipH2p][ipH1s].TauIn); 61 aa = pow( aa ,-0.75); 61 62 hydro.pestrk[ipH1s][ipH2p] = strkla/2.*MAX2(1.,aa); 62 63 -
trunk/tsuite/auto/blr_n09_p18_Z20.in
r670 r685 25 25 punch dr "blr_n09_p18_Z20.dr" 26 26 punch convergence reason "blr_n09_p18_Z20.cvr" 27 punch convergence error "blr_n09_p18_Z20.cve" 27 28 c 28 29 c commands giving the asserts ========= -
trunk/tsuite/auto/limit_hi_ion.in
r656 r685 10 10 c 11 11 c commands controlling output ========= 12 punch heating " func_hi_ion.het"13 punch cooling " func_hi_ion.col"12 punch heating "limit_hi_ion.het" 13 punch cooling "limit_hi_ion.col" 14 14 c 15 15 c commands giving the asserts =========
