@@ -39,14 +39,18 @@ function results() result(test_results)
3939
4040#if HAVE_MULTI_IMAGE_SUPPORT
4141 test_descriptions = [ &
42- test_description_t(" the divergence of a gradient matching a Laplacian" , div_grad_matches_laplacian) &
42+ test_description_t(" the divergence of a gradient matching a Laplacian - Multi-Image" , div_grad_matches_laplacian) &
43+ ,test_description_t(" div test1 - Multi-Image" , div_test1) &
4344 ]
4445#else
4546 procedure (diagnosis_function_i), pointer :: div_grad_matches_laplacian_ptr
47+ procedure (diagnosis_function_i), pointer :: div_test1_ptr
4648 div_grad_matches_laplacian_ptr = > div_grad_matches_laplacian
49+ div_test1_ptr = > div_test1
4750
4851 test_descriptions = [ &
49- test_description_t(" the divergence of a gradient matching a Laplacian" , div_grad_matches_laplacian_ptr) &
52+ test_description_t(" the divergence of a gradient matching a Laplacian - Non Mult-Image" , div_grad_matches_laplacian_ptr) &
53+ ,test_description_t(" div test1 - Non Multi-Image" , div_test1_ptr) &
5054 ]
5155#endif
5256 test_results = test_descriptions% run()
@@ -57,6 +61,8 @@ function div_grad_matches_laplacian() result(test_diagnosis)
5761 real , parameter :: tolerance = 1.E-06
5862 type (mimetic_t) phi
5963
64+ ! For now I'll use n = order*2 + 1, = 5
65+
6066 call phi% define(side= 1 ., boundary_val= 0 ., internal_val= 0 ., n= 21 )
6167
6268#ifndef __GFORTRAN__
@@ -73,4 +79,33 @@ function div_grad_matches_laplacian() result(test_diagnosis)
7379#endif
7480 end function
7581
82+ function div_test1 () result(test_diagnosis)
83+ type (test_diagnosis_t) test_diagnosis
84+ real , parameter :: tolerance = 1.E-06
85+ type (mimetic_t) phi
86+ integer :: mimetic_k
87+
88+ call phi% define(side= 1 ., boundary_val= 0 ., internal_val= 0 ., n= 21 )
89+ ! call phi%setOrder(my_k=2)
90+ mimetic_k = phi% mimetic_k()
91+ write (* ,* ) " mimetic_k = " , mimetic_k
92+
93+ #ifndef __GFORTRAN__
94+ #else
95+ block
96+ type (mimetic_t) div_grad_phi, laplacian_phi
97+ div_grad_phi = .div. (.grad. phi)
98+ laplacian_phi = .laplacian. phi
99+ end block
100+ #endif
101+
102+ test_diagnosis = test_diagnosis_t( &
103+ test_passed = .true. &
104+ ,diagnostics_string = " Test passed" &
105+ )
106+
107+
108+ end function
109+
110+
76111end module mimetic_test_m
0 commit comments