Merge remote-tracking branch 'origin/release-v4.6.1'
[WRF.git] / chem / KPP / util / wkc / get_wrf_jvals.c
blobeb828e5942cb9b713c508866e3c33d5f51c14c07
1 #include <stdio.h>
2 #include <string.h>
5 #include "protos.h"
6 #include "protos_kpp.h"
7 #include "kpp_data.h"
10 int get_wrf_jvals( )
14 knode_t * q, * member;
15 node_t *p ;
18 q = new_knode( );
19 q->next = NULL ;
20 strcpy( q->name, "WRFC_jvals" );
21 add_knode_to_end( q , &(WRFC_jvals) );
27 for ( p = Domain.fields ; p != NULL ; p = p->next )
30 if ( !strncmp( p->dname ,"PHOTR",5) )
33 /* fprintf(stdout, " %s: %s %s\n", p->dname, p->name, p->dname); */
35 member = new_knode( ) ;
36 strcpy( member->name , p->name ) ;
37 member->next = NULL ;
38 add_knode_to_end( member , &(q->members) ) ;
46 return(0) ;