cloudy  trunk
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
parse_atom_co.cpp
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2008 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 /*ParseAtomCO parse information from the rotor command line */
4 #include "cddefines.h"
5 #include "taulines.h"
6 #include "parse.h"
7 
8 void ParseAtomCO(char *chCard )
9 {
10  bool lgEOL;
11  long int i;
12 
13  DEBUG_ENTRY( "ParseAtomCO()" );
14 
15  if( nMatch("LEVE",chCard) )
16  {
17  /* number of rotation levels for CO */
18 
19  /* lgHydroMalloc is false at start of calculation, set true when space
20  * allocated for the hydrogen lines. Once done we must ignore all
21  * future changes in the number of levels */
22  if( !lgCORotateMalloc )
23  {
24  i = 5;
25  nCORotate = (long int)FFmtRead(chCard,&i,INPUT_LINE_LENGTH,&lgEOL);
26 
27  if( nCORotate < 2 )
28  {
29  fprintf( ioQQQ, " This would be too few levels.\n" );
30  cdEXIT(EXIT_FAILURE);
31  }
32  }
33  }
34 
35  else
36  {
37  fprintf( ioQQQ, " There should have been a keyword - I know about LEVEL, Stop in ParseAtomCO\n" );
38  cdEXIT(EXIT_FAILURE);
39  }
40  return;
41 }

Generated for cloudy by doxygen 1.8.4