def xx_to_Cart_h(funcname, cparamsloc, outfile):
    Cout = outputC([xx_to_Cart[0], xx_to_Cart[1], xx_to_Cart[2]], ['xCart[0]', 'xCart[1]', 'xCart[2]'], 'returnstring', params='preindent=1')
    with open(outfile, 'w') as file:
        file.write((((((((('\nstatic inline void ' + funcname) + '(const paramstruct *restrict params, REAL *restrict xx[3],const int i0,const int i1,const int i2, REAL xCart[3]) {\n#include ') + '"') + cparamsloc) + '"') + '\n    REAL xx0 = xx[0][i0];\n    REAL xx1 = xx[1][i1];\n    REAL xx2 = xx[2][i2];\n') + Cout) + '}\n'))
def xx_to_Cart_h(funcname, cparamsloc, outfile):
    Cout = outputC([xx_to_Cart[0], xx_to_Cart[1], xx_to_Cart[2]], ['xCart[0]', 'xCart[1]', 'xCart[2]'], 'returnstring', params='preindent=1')
    with open(outfile, 'w') as file:
        file.write((((((((('\nstatic inline void ' + funcname) + '(const paramstruct *restrict params, REAL *restrict xx[3],const int i0,const int i1,const int i2, REAL xCart[3]) {\n#include ') + '"') + cparamsloc) + '"') + '\n    REAL xx0 = xx[0][i0];\n    REAL xx1 = xx[1][i1];\n    REAL xx2 = xx[2][i2];\n') + Cout) + '}\n'))