Sunrise is Compiled!

I have finally managed to compile the latest (default) version of Sunrise! I had to tinker with it periodically over the course of a few days, but I finally managed to do it.  The current version of the code in the Mercurial repository has evidently been designed to compile only with Arepo support, but I do not have Arepo and I will not be using Arepo for my project.  It seems that compiling the code without Arepo is planned, but not fully implemented in the current version.  There are several errors that occur when Arepo is absent.  In order to get the code to compile, I had to extensively edit the pre-processor directives.

There may be a cleaner  way of doing this, but this works: First, in the config.h header, I had to uncomment the line:

#undef WITH_AREPO

Then, I wrapped each block of code containing the word "arepo" in

#ifdef WITH_AREPO

blah blah arepo blah

#endif

Some (but not enough) pieces of code were already wrapped in this way. In at least two source files, it was done incorrectly (ir_grid.cc and aux_grid.cc). Once I had properly prevented all Arepo-specific code from being compiled, the compilation was successful.  I now have the three executables sfrhist, mcrx, and broadband.  I haven't tried running the exucutables yet—except for the very simple test of seeing whether they ask for input files.  I also haven't attempted to compile with CUDA support, but both of these tasks should be completed soon and I'll find out if there are any run-time errors in this version...fun!

Tags: ,

2 Responses to “Sunrise is Compiled!”

  1. essay serv?ces Says:

    Formal education is well organized, systematic and properly structured. It is based on some set of rules and regulations which is important to follow for every individual who is part of it. It is based on teachers, students, course goals.

  2. niceessays Says:

    Sunrises are compiled for the successive stint and tinge. It is ensured for the great and immensely priceless nature. The students of the times are getting extreme efficient goals and aims.

Leave a Reply