Debian Codegraph @

wrappers/perl/lib/Xray/Feff.pm

raw
1 package Xray::Feff;
2 use strict;
3 use warnings;
4
5 our $VERSION = '1.00'; # Inline::MakeMake uses /^\d.\d\d$/ as the
6 # pattern for the version number -- note the
7 # two digits to the right of the dot
8
9 sub import {
10 strict->import;
11 warnings->import;
12
13 foreach my $p (qw(Phases Path)) {
14 next if $INC{"Xray/Feff/$p.pm"};
15 #print "Xray/Feff/$p.pm\n";
16 require "Xray/Feff/$p.pm";
17 };
18 };
19
20 1;
21 __END__
22
23 =head1 NAME
24
25 Xray::Feff - A wrapper for Feff functionality
26
27 =head1 VERSION
28
29 This documentation refers to feff85exafs.
30
31 =head1 SYNOPSIS
32
33 This imports L<Xray::Feff::Path> and L<Xray::Feff::Phases> into your
34 program. It also imports L<strict> and L<warnings> into your program.
35
36 use Xray::Feff;
37 my $phases = Xray::Feff::Phases->new;
38 my $path = Xray::Feff::Path->new;
39
40 =head1 DESCRIPTION
41
42 One module to import providing access to all Feff-related
43 functionality. Once loaded, L<Xray::Feff::Path> and
44 L<Xray::Feff::Phases> are available to your program.
45
46 =head1 INSTALLATION
47
48 After you have built and installed I<feff85exafs>, do the following:
49
50 perl Makefile.PL
51 make
52 make test
53 sudo make install
54
55 That's it! Note, though, that building this wrapper B<requires> that
56 the fortran and C code for I<feff85exafs> be completely compiled and
57 that the resulting libraries (and other files) be successfully
58 installed.
59
60 =head1 CONFIGURATION AND ENVIRONMENT
61
62 L<Feff85exafs|https://github.com/xraypy/feff85exafs> must be
63 installed. Specifically, building the Xray::Feff package must have
64 access to the F<libfeffphases> and F<libfeffpath> libraries and the
65 F<feffphases.h> and F<feffpath.h> header files. These are usually
66 found in F</usr/local/lib> and F</usr/local/include> on unix and in
67 ??? on Windows.
68
69 =head1 DEPENDENCIES
70
71 =over 4
72
73 =item *
74
75 L<Inline>
76
77 =item *
78
79 L<Inline::C>
80
81 =item *
82
83 L<Moose>
84
85 =item *
86
87 L<MooseX::NonMoose>
88
89 =item *
90
91 L<MooseX::Aliases>
92
93 =back
94
95 =head1 BUGS AND LIMITATIONS
96
97 Please report problems as issues at the github site:
98 https://github.com/xraypy/feff85exafs
99
100 Patches are welcome.
101
102 =head1 AUTHOR
103
104 Bruce Ravel (L<http://bruceravel.github.io/home>)
105
106 http://bruceravel.github.io/demeter/
107
108
109 =head1 LICENCE AND COPYRIGHT
110
111 To the extent possible, the authors have waived all rights granted by
112 copyright law and related laws for the code and documentation that
113 make up the Perl Interface to the feffphases and feffpath libraries.
114 While information about Authorship may be retained in some files for
115 historical reasons, this work is hereby placed in the Public Domain.
116 This work is published from: United States.
117
118 Note that the C libraries themselves are NOT public domain, nor is the
119 Fortran source code for Feff that they rely upon.
120
121 Author: Bruce Ravel (bravel AT bnl DOT gov).
122 Created: 8 July, 2015
123
124 =cut