Skip to content

Commit

Permalink
updates C-declaration for newer compilers in modified AxiSEM
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeter committed Dec 12, 2024
1 parent 21efea4 commit 6811924
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
pthread_t thread = (pthread_t) 0;

// stub - so c knows what the function looks like
extern void __nc_routines_MOD_nc_dump_strain_to_disk();
//extern void __nc_routines_MOD_nc_dump_strain_to_disk();

// newer compiler versions link with nc_dump_strain_to_disk()
// as fortran code uses: subroutine nc_dump_strain_to_disk() bind(c, name="nc_dump_strain_to_disk")
extern void nc_dump_strain_to_disk();

// tread that calls the IO function from fortran
void *cfunc_thread(void* valp)
Expand Down

0 comments on commit 6811924

Please sign in to comment.