Full documentation
Main structures
TaylorInterface.TaylorGenerator — TypeTaylorGenerator(name=randstring(12), eqs_filename, parent_path=".")Structure used to generate directories and call taylor. The directory name will be $(parent_path)/taylor_$(name). The equation file should follow the syntax required by taylor.
TaylorInterface.TaylorHandler — TypeTaylorHandler(path)Structure used to open, use and close directories generated by TaylorGenerator.
Around the TaylorGenerator
TaylorInterface.generate_dir — Functiongenerate_dir(generator, silent=false)Generates the directory corresponding to the generator, and builds the library. If silent is true, command will be silent apart from errors.
TaylorInterface.get_taylor_dir — Functionget_taylor_dir(generator)Returns the directory associated to the generator.
TaylorInterface.get_handler — Functionget_handler(generator, open=true)Get the TaylorHandler corresponding to the generator. If open is true, the library will also be open in the handler.
Around the TaylorHandler
TaylorInterface.compile_eqs — Functioncompile_eqs(generator, silent=false)Runs make in the directory of the generator. If silent is true, runs make -s, thus being silent (apart from errors).
compile_eqs(handler, silent=false)Runs make in the directory of the handler. If silent is true, runs make -s, thus being silent (apart from errors).
TaylorInterface.open_lib — Functionopen_lib(handler)Opens the handler's library, storing the loaded library and a dictionary with symbols to functions in the handler.
Currently, the loaded functions are flow, tstep and tstep_reverse.
TaylorInterface.close_lib — Functionclose_lib(handler)Close the library referred by the handler.
TaylorInterface.clear_dir — Functionclear_dir(handler)Delete the directory referred by the handler.
clear_dir(generator)Delete the directory referred by the generator.
TaylorInterface.is_open — Functionis_open(handler)Check if handler refers to an open library.
TaylorInterface.check_open — Functioncheck_open(handler)Check if handler refers to an open library, and opens it if not.
Integration functions
TaylorInterface.flow! — Functionflow!(han, x, [y], t, df=Ref(nothing))Wrapper function around the C flow function in the han TaylorHandler.
df should be passed as a vector if jet transport is used. In this case, jet transport results will be stored in df.
If y is passed, the flow result will be stored in it.
TaylorInterface.flow — Functionflow(han, x, t)Wrapper function around the C flow function in the han TaylorHandler. Should only be used if jet transport isn't used; otherwise, use flow!.
Default models
TaylorInterface.get_model — Functionget_model(name, open=false)Get the TaylorHandler corresponding to a default model in this package. If open is true, the library will also be open in the handler.
Warning: name should NOT contain the prefix "taylor_h".
Internal functions
File system navigation
These functions are mainly intended for internal use and navigation within the file system.
TaylorInterface.get_dir_src — Functionget_dir_src()Returns the directory containing this package.
TaylorInterface.get_models_dir — Functionget_models_dir()Returns the directory containing predefined models.
TaylorInterface.get_wrappers — Functionget_wrappers(generator)Get the appropriate wrapper files for the generator.
Taylor flags
TaylorInterface.get_jet_flag — Functionget_jet_flag(generator)Get the jet flag to pass to taylor when compiling the equations given by the generator.