main() is supposed to be the part of the user written program (meep core is just a library). So you are supposed to implement main() on your one, specifying all simulation details step by step. Look through meep test programs to find usual sequence of simulation setup.
Hope it helps, Shawkat Nizamov 2010/9/9, bin huang <[email protected]>: > Bin Huang <b...@...> writes: > >> >> Hi guys, >> >> I am wondering if there is any documentation or brief explanation of each > class file in the program? A >> overview of the structure is good enough for me to understand the flow of >> the > program. >> >> Sphere_quad.cpp seems to produce the grid point coordinates. I am >> wondering > how the program proceeds from >> there. Basically if I can get some help on the flow of the program, it >> would > be great. Something like what >> does the program do in the first step, the second step, then does it use >> some > external solver to solve the >> fields etc etc. >> >> I guess this question is directed to the original developer of this >> program. > Thanks a lot for your help. >> -- >> Bin Huang (Bryan) >> MIT Graduate Student '10 >> Computation for Design and Optimization >> (+65)98947649 >> > > It seems like Sphere_quad.cpp is only used to output the file Sphere_quad.h. > > I only found one main function in Sphere_quad.cpp, which is why I thought > the > > program starts running from there. > > However, when i found out that it is not the case, I try to search some > > words in the output of MEEP, anything in the following file. > > ----------- > Initializing structure... > Working in Cylindrical dimensions. > Computational cell is 8 x 0 x 0 with resolution 10 > block, center = (1.5,0,0) > size (1,1e+20,1e+20) > axes (1,0,0), (0,1,0), (0,0,1) > dielectric constant epsilon diagonal = (11.56,11.56,11.56) > time for set_epsilon = 0.00140896 s > > > However, I am not able to locate where MEEP prints out all these results.... > > Can someone pls enlighten me? > > Rgds, > Bin Huang > > > > _______________________________________________ > meep-discuss mailing list > [email protected] > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss > _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

