/home66/gary/public_html/cloudy/c08_branch/source/opacity_zero.cpp

Go to the documentation of this file.
00001 /* This file is part of Cloudy and is copyright (C)1978-2008 by Gary J. Ferland and
00002  * others.  For conditions of distribution and use see copyright notice in license.txt */
00003 /*OpacityZero zero out opacity save arrays, save old opacity in OldOpacSave array */
00004 #include "cddefines.h"
00005 #include "rfield.h"
00006 #include "opacity.h"
00007 
00008 void OpacityZero(void)
00009 {
00010         long int i;
00011 
00012         DEBUG_ENTRY( "OpacityZero()" );
00013 
00014 
00015         for( i=0; i < rfield.nupper; i++ )
00016         {
00017                 opac.opacity_sct[i] = 0.;
00018                 /* save the current opacities */
00019                 opac.OldOpacSave[i] = opac.opacity_abs[i];
00020                 opac.opacity_abs[i] = 0.;
00021         }
00022 
00023         /* only zero out the static array if we are going to
00024          * totally redo the static part */
00025         if( opac.lgRedoStatic )
00026         {
00027                 /*fprintf(ioQQQ," OpacityZero is zeroing out the static opacities\n");*/
00028                 for( i=0; i < rfield.nupper; i++ )
00029                 {
00030                         opac.OpacStatic[i] = 0.;
00031                 }
00032         }
00033         return;
00034 }
00035 
00036 /* set old opac array to current versin during search phase */
00037 void OpacityZeroOld(void)
00038 {
00039         long int i;
00040 
00041         DEBUG_ENTRY( "OpacityZeroOld()" );
00042 
00043 
00044         for( i=0; i < rfield.nupper; i++ )
00045         {
00046                 /* save the current opacities */
00047                 opac.OldOpacSave[i] = opac.opacity_abs[i];
00048         }
00049         return;
00050 }

Generated on Mon Feb 16 12:01:20 2009 for cloudy by  doxygen 1.4.7