Skip to content

Commit

Permalink
Add a function to provide the version of GALAHAD in the Julia interface
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Aug 15, 2024
1 parent 46accfe commit 8e56cfe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GALAHAD.jl/src/wrappers/version.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ function galahad_version()
major = Ref{Cint}(0)
minor = Ref{Cint}(0)
patch = Ref{Cint}(0)
@ccall libgalahad_double.galahad_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid
@ccall libgalahad_double.version_galahad(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid
return VersionNumber(major[], minor[], patch[])
end
2 changes: 1 addition & 1 deletion include/galahad_version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
void galahad_version(int *major, int *minor, int *patch);
void version_galahad(int *major, int *minor, int *patch);
4 changes: 2 additions & 2 deletions src/version/version.F90
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ MODULE GALAHAD_VERSION

!-*-*-*-*-*-*- G A L A H A D V E R S I O N F U N C T I O N -*-*-*-*-*-*-

FUNCTION VERSION(major_version, minor_version, patch_version) BIND(C, NAME="version_galahad")
SUBROUTINE VERSION(major_version, minor_version, patch_version) BIND(C, NAME="version_galahad")
INTEGER :: major_version, minor_version, patch_version

! return the current GALAHAD version number (major.minor.patch)
Expand All @@ -41,7 +41,7 @@ FUNCTION VERSION(major_version, minor_version, patch_version) BIND(C, NAME="vers

! End of subroutine VERSION

END FUNCTION VERSION
SUBROUTINE VERSION

! End of module GALAHAD_VERSION

Expand Down

0 comments on commit 8e56cfe

Please sign in to comment.