Changeset 3204
- Timestamp:
- 11/04/11 14:19:04 (7 months ago)
- Files:
-
- 1 modified
-
trunk/nlib/samples/Isotropic_Sqw.comp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/nlib/samples/Isotropic_Sqw.comp
r3198 r3204 195 195 * of the next component/detector). Use 0 for full space. 196 196 * This is only relevant for single scattering (order=1). 197 * save_sqw: [1] When set to 1, saves S(q), S(w) and S(q,w) as monitors. 197 * save_sqw: [1] When set to 1, saves S(q), S(w) and S(q,w) as monitors. This option 198 * is not available under Windows platforms. 198 199 * weight: [g/mol] atomic/molecular weight of material 199 200 * density: [g/cm^3] density of material. V_rho=density/weight/1e24*N_A … … 1385 1386 VarSqw.q_max = (qmax > 0 ? qmax : 0); 1386 1387 VarSqw.q_min = (qmin > 0 ? qmin : 0); 1388 1389 #ifdef WIN32 1390 save_sqw=0; /* SAVE Sqw generates mem error under windows (probably dynamic memory allocation) */ 1391 #endif 1387 1392 /* end INITIALIZE */ 1388 1393 %} … … 1979 1984 %{ 1980 1985 int k; 1986 1987 /* save_sqw=0 forced under Windows 1988 SAVE Sqw generates mem error under windows (probably dynamic memory allocation) */ 1981 1989 1982 1990 if (VarSqw.s_coh > 0 || VarSqw.s_inc > 0) … … 1993 2001 Data_sqw = (k == 0 ? VarSqw.Data_coh : VarSqw.Data_inc); 1994 2002 1995 if (save_sqw && Data_sqw.intensity ) {2003 if (save_sqw && Data_sqw.intensity && Data_sqw.nb_q && Data_sqw.nb_w) { 1996 2004 double SW[Data_sqw.nb_w]; 1997 2005 double SQW[Data_sqw.nb_q][Data_sqw.nb_w];
