Commit 5314a4df authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Add Makefile instructions to build trapping

parent a77ecddb
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@ BUILDDIR=../../build/cluster
FC=gfortran
FCFLAGS=-std=legacy -O3
LFLAGS=
LFLAGS=
CXX=g++
CXXFLAGS=-O2 -ggdb -pg -coverage
CXXLFLAGS=
+3 −3
Original line number Diff line number Diff line
/*! \file Parsers.h
 */

#ifndef INCLUDE_PARSERS_H_
#define INCLUDE_PARSERS_H_

#ifndef FILE_NOT_FOUND_ERROR
//! Error code if a file is not found.
#define FILE_NOT_FOUND_ERROR 21
#endif

#ifndef INCLUDE_PARSERS_H_
#define INCLUDE_PARSERS_H_

/*! \brief Load a text file as a sequence of strings in memory.
 *
 * The configuration of the field expansion code in FORTRAN uses
+0 −1
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
 *
 * \brief C++ porting of CLU functions and subroutines.
 *
 *
 * This library includes a collection of functions that are used to solve the
 * scattering problem in the case of a cluster of spheres. The functions that
 * were generalized from the case of the single sphere are imported the `sph_subs.h`

src/include/file_io.h

deleted100644 → 0
+0 −43
Original line number Diff line number Diff line
/*! \file file_io.h
 *
 * C++ wrapper of FORTRAN I/O operations with files.
 */

/*! \brief Open a file for subsequent access.
 *
 * \param uid: `int*` Pointer to the unit ID to be associated to the file.
 * \param name: `char*` C-string for file name (max. length of 63).
 * \param sta: `char*` C-string for file status (max. length of 7).
 * \param mode: `char*` C-string for access mode (max. length of 11).
 */
extern "C" void open_file_(int* uid, const char* name, const char* sta, const char* mode);
/*! \brief Close a previously opened file.
 *
 * \param uid: `int*` Pointer to the unit ID of the file.
 */
extern "C" void close_file_(int* uid);
/*! \brief Read an integer value from a file.
 *
 * \param uid: `int*` Pointer to the unit ID of the file.
 * \param value: `int*` Pointer of the variable to be updated.
 */
extern "C" void read_int_(int* uid, int* value);
/*! \brief Write a complex value to a file.
 *
 * \param uid: `int*` Pointer to the unit ID of the file.
 * \param real: `double*` Pointer to the real part of the value.
 * \param imag: `double*` Pointer to the imaginary part of the value.
 */
extern "C" void write_complex_(int* uid, double* real, double* imag);
/*! \brief Write a double precision float value to a file.
 *
 * \param uid: `int*` Pointer to the unit ID of the file.
 * \param value: `double*` Pointer to the variable to be written.
 */
extern "C" void write_double_(int* uid, double* value);
/*! \brief Write an integer value to a file.
 *
 * \param uid: `int*` Pointer to the unit ID of the file.
 * \param value: `int*` Pointer to the variable to be written.
 */
extern "C" void write_int_(int* uid, int* value);
+79 −515

File changed.

Preview size limit exceeded, changes collapsed.

Loading