Dear all, I am using meep in a cluster, and when I try to compile including a call to the function 'everyone_close' (as described in the C++ reference) I get:
[EMAIL PROTECTED] ~ $ make mpic++ -I/usr/local/include -c -o fbg.o fbg.cpp fbg.cpp: In function 'int main(int, char**)': fbg.cpp:160: error: 'everyone_close' was not declared in this scope make: *** [fbg.o] Error 1 [EMAIL PROTECTED] ~ $ I can use 'master_fopen' and 'master_fclose', but anyway I cannot see the files I intend to write in my filesystem. The chunk of C++ code where all of this happens follows. All your help will be appreciated. double *flux = ft.flux(); double *flux0 = ft0.flux(); // Finally, we normalize the flux and output the transmission spectrum. double dfreq = (freq_max-freq_min) / nfreq; const char *dirname = make_output_directory(__FILE__); s0.set_output_directory(dirname); s.set_output_directory(dirname); fid = create_output_file(dirname, "flux0.dat"); for (int i=0; i<nfreq; ++i) master_fprintf(fid,"flux0:, %g, %g\n",freq_min+i*dfreq,flux0[i]); everyone_close(fid); fid = create_output_file(dirname,"flux.dat"); for (int i=0; i<nfreq; ++i) fprintf(fid,"flux:, %g, %g\n",freq_min+i*dfreq,flux[i]); everyone_close(fid); delete [] flux; delete [] flux0; -- Dr. Pascual Muñoz Muñoz - Telecommunication Engineer Optical Communications Group - iTEAM Research Institute [EMAIL PROTECTED] - www.gco.upv.es - www.upv.es _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

