From: Robert F. <rjf...@as...> - 2017-03-29 03:34:57
|
Hi > Should I change the makefile somehow to generate the mymodule.o file along with MESA's compilation (and then "use mymodule" within the hook)? You can do that, you could also copy the functions into the run_star_extras file or you could copy the whole module and place before the run_star_extras module in the run_star_extras.f file then add a use module to the other hook function. Rob On Tue, Mar 28, 2017 at 3:52 PM, Héctor MR <hec...@pi...> wrote: > Dear all, > > How can I include a module (let's say mymodule.f) within the subroutine > for an extra_hook? I mean something like (e.g.) > > module mymodule > > use star_def > use const_def > > [...] > > end module mymodule > > and then > > subroutine other_neu(id, ierr) > *! include my code here* > end subroutine other_neu > > Should I change the makefile somehow to generate the mymodule.o file > along with MESA's compilation (and then "use mymodule" within the hook)? > > Thanks! > > > -- > H. > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > mesa-users mailing list > mes...@li... > https://lists.sourceforge.net/lists/listinfo/mesa-users > > |