! o-----------------------------------------------------------------------------o ! | ! | TPSA Example 8 ! | ! | Methodical Accelerator Design - Copyright (c) 2016+ ! | Support: http://cern.ch/mad - mad at cern.ch ! | Authors: L. Deniau, laurent.deniau at cern.ch ! | Contrib: - ! | ! o-----------------------------------------------------------------------------o ! | You can redistribute this file and/or modify it under the terms of the GNU ! | General Public License GPLv3 (or later), as published by the Free Software ! | Foundation. This file is distributed in the hope that it will be useful, but ! | WITHOUT ANY WARRANTY OF ANY KIND. See http://gnu.org/licenses for details. ! o-----------------------------------------------------------------------------o ! ! WARNING: this file is not part of MAD, it must be used as an example with the ! standalone library, see mad/src/REAME.GTPSA for more info. program gtpsa_ex8 use gtpsa implicit none type(c_ptr) :: d, t1, t2, t3 !type(c_ptr) :: d0 ! descriptor for TPSA with 6 variables of order 2 (max) d=mad_desc_newv(6, 2_1) ! d0=mad_desc_newv(6, 0) ! -> error: mad_desc.c:1230: : invalid maximum order: 0 (0