00001 00002 //=======================================================// _\|/_ 00003 // __ _____ ___ ___ // /|\ ~ 00004 // / | ^ | \ | ^ | \ // _\|/_ 00005 // \__ | / \ |___/ | / \ |___/ // /|\ ~ 00006 // \ | /___\ | \ | /___\ | \ // _\|/_ 00007 // ___/ | / \ | \ |____ / \ |___/ // /|\ ~ 00008 // // _\|/_ 00009 //=======================================================// /|\ ~ 00010 00011 // addstar: Add star class to existing node structure. 00012 00013 #include "sstar_to_dyn.h" 00014 #include "single_star.h" 00015 #include "util_io.h" 00016 00017 #ifndef TOOLBOX 00018 00019 //----------------------------------------------------------------------------- 00020 // addstar -- for all particles, add a star part using "new star()". 00021 //----------------------------------------------------------------------------- 00022 00023 void addstar(dyn * b, real t_current, stellar_type type, bool verbose) { 00024 00025 addstar(dynamic_cast(node*, b), t_current, type, verbose); 00026 00027 b->get_starbase()->set_use_hdyn(true); 00028 00029 for_all_daughters(dyn, b, bi) 00030 bi->set_radius(bi->get_starbase() 00031 ->conv_r_star_to_dyn( 00032 bi->get_starbase()->get_effective_radius())); 00033 00034 } 00035 00036 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001