Skip to content

genetic algorithm based reflectometry fitter

Notifications You must be signed in to change notification settings

hoogerheide/garefl

 
 

Repository files navigation

  GArefl is a reflectometry fitting program in C which allows simultaneous
  fitting of neutron and X-ray data.

  The source software is available as a download from

       http://www.ncnr.nist.gov/reflpak

  or directly from the github repository:

       http://github.com/reflectometry/garefl

  Once you have downloaded the particular version you are
  interested in and extracted the files, change to the
  garefl subdirectory.

  The next step(s) are operating system specific.

  MacOSX
    For OS X 10.4 you will need to have a fortran compiler to fit
    magnetic systems.  E.g., the following version of the gfortran 
    compiler builds universal binaries:

        http://r.research.att.com/tools

    Install gnuplot and aquaterm.

    On Mac OS X you may need to use one of the following:

	./configure --disable-magnetic  # No fortran compiler
	./configure FLIBS=-lg2c         # g77 fortran compiler
        ./configure FLIBS=/usr/local/lib/libgfortran.a  # gfortran compiler

  Windows
    
    Install cygwin with dev tools (gcc, make, gfortran), or install msys+mingw.
    Install gnuplot for windows.

        ./configure


  Unix

    Install development environment (e.g., gcc, make, gfortran) using the
    package manager for the OS and install gnuplot.

	./configure


  Once configure has completed, use

	make

  to build the code.

  Next switch to examples/volfrac and type

	make
	./fit

  You should now be running an example of a simultaneous fit.

  See doc/ga_refl.pdf for instructions on setting up your models 
  and fitting with them.

Paul Kienzle
2008-02-26

About

genetic algorithm based reflectometry fitter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 77.7%
  • C++ 9.7%
  • Fortran 7.4%
  • Shell 3.4%
  • Makefile 1.4%
  • Python 0.3%
  • CMake 0.1%