Changeset 3248
- Timestamp:
- 01/26/12 21:05:29 (4 months ago)
- Location:
- branches/mcxtrace-1.0
- Files:
-
- 2 modified
-
nlib/optics/Guide_anyshape.comp (modified) (1 diff)
-
src/cogen.c.in (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/mcxtrace-1.0/nlib/optics/Guide_anyshape.comp
r3117 r3248 103 103 if (reflect && strlen(reflect)) { 104 104 if (Table_Read(&pTable, reflect, 1) <= 0) /* read 1st block data from file into pTable */ 105 exit(fprintf(stderr,"Guide_anyshape: %s: can not read file %s. Aborting coating used.\n", NAME_CURRENT_COMP, (char*)reflect));105 exit(fprintf(stderr,"Guide_anyshape: %s: can not read file %s. Aborting.\n", NAME_CURRENT_COMP, reflect)); 106 106 else 107 107 Table_Rebin(&pTable); /* rebin as evenly, increasing array */ -
branches/mcxtrace-1.0/src/cogen.c.in
r3164 r3248 944 944 last = comp; 945 945 946 coutf(" /* Initializations for component %s. */", comp->name);947 coutf(" SIG_MESSAGE(\"%s (Init )\");", comp->name); /* signal handler message */948 /* Initializationof the component setting parameters. */946 coutf(" /* Setting parameters for component %s. */", comp->name); 947 coutf(" SIG_MESSAGE(\"%s (Init:SetPar)\");", comp->name); /* signal handler message */ 948 /* Setting parameters of the component setting parameters. */ 949 949 setpar = list_iterate(comp->def->set_par); 950 950 while((par = list_next(setpar)) != NULL) … … 971 971 cout(""); 972 972 973 } /* end while instr->complist */ 974 list_iterate_end(liter); 975 976 /* Initialization of component and user initialization code. */ 977 cout(" /* Component initializations. */"); 978 liter = list_iterate(instr->complist); 979 while((comp = list_next(liter)) != NULL) 980 { 981 List_handle setpar; 982 struct comp_iformal *par; 983 984 coutf(" /* Initializations for component %s. */", comp->name); 985 coutf(" SIG_MESSAGE(\"%s (Init)\");", comp->name); /* signal handler message */ 986 973 987 /* Users initializations. */ 974 988 if(list_len(comp->def->init_code->lines) > 0) … … 976 990 comp->def->init_code); 977 991 cout(""); 978 } /* end while instr->complist */992 } 979 993 list_iterate_end(liter); 980 994
