-- FreeFem++ v4.6 (Thu Apr 2 15:47:38 CEST 2020 - git v4.6) Load: lg_fem lg_mesh lg_mesh3 eigenvalue 1 : // Discussion: 2 : // 3 : // -uxx - uyy = f on the upside down L shaped region 4 : // u = g on the boundary. 5 : // 6 : // f = - gxx - gyy 7 : // g = awful formula 8 : // 9 : // Suggested parameter values: 10 : // omega = 3 * pi / 2 11 : // xw = 0.0 12 : // yw = -0.75 13 : // r0 = 0.75 14 : // alphaw = 200.0 15 : // xp = sqrt(5)/4 16 : // yp = -0.25 17 : // alphap = 1000 18 : // epsilon = 0.01 19 : // 20 : // Location: 21 : // 22 : // http://people.sc.fsu.edu/~jburkardt/freefem_src/mitchell_12/mitchell_12.edp 23 : // 24 : // Licensing: 25 : // 26 : // This code is distributed under the GNU LGPL license. 27 : // 28 : // Modified: 29 : // 30 : // 26 December 2014 31 : // 32 : // Author: 33 : // 34 : // John Burkardt 35 : // 36 : // Reference: 37 : // 38 : // Frederic Hecht, 39 : // Freefem++, 40 : // Third Edition, version 3.22 41 : // 42 : // William Mitchell, 43 : // A collection of 2D elliptic problems for testing adaptive 44 : // grid refinement algorithms, 45 : // Applied Mathematics and Computation, 46 : // Volume 220, 1 September 2013, pages 350-364. 47 : // 48 : cout << "\n"; 49 : cout << "mitchell_12\n"; 50 : cout << " FreeFem++ version\n"; 51 : cout << " Solve the multiple difficulties problem.\n"; 52 : // 53 : // Set parameters. 54 : // 55 : 56 : // 57 : // Set the borders of the L-shaped region. 58 : // 59 : border e1 ( t = -1.0, 0.0 ) { x = t; y = -1.0; label = 1; } 60 : border e2 ( t = -1.0, 0.0 ) { x = 0.0; y = t; label = 1; } 61 : border e3 ( t = 0.0, 1.0 ) { x = t; y = 0.0; label = 1; } 62 : border e4 ( t = 0.0, 1.0 ) { x = 1.0; y = t; label = 1; } 63 : border e5 ( t = 1.0, -1.0 ) { x = t; y = 1.0; label = 1; } 64 : border e6 ( t = 1.0, -1.0 ) { x = -1.0; y = t; label = 1; } 65 : // 66 : // Define Th, the triangulation of the "left" side of the boundaries. 67 : // 68 : int n = 10; 69 : int n2 = 2 * n; 70 : mesh Th = buildmesh ( e1 ( n ) + e2 ( n ) + e3 ( n ) + e4 ( n ) + e5 ( n2 ) + e6 ( n2 ) ); 71 : // 72 : // Define Vh, the finite element space defined over Th, using P1 basis functions. 73 : // 74 : fespace Vh ( Th, P1 ); 75 : // 76 : // Define U, V, and F, piecewise continuous functions over Th. 77 : // 78 : Vh u; 79 : Vh v; 80 : // 81 : // Define right hand side function F. 82 : // 83 : func f 84 : // 85 : // Define boundary condition function G. 86 : // 87 : func Error line number 87, in file mitchell_12.edp, before token func syntax error current line = 83 Compile error : syntax error line number :87, func error Compile error : syntax error line number :87, func code = 1 mpirank: 0