@@ -279,22 +279,24 @@ int CeedGetJitRelativePath(const char *absolute_file_path,
279279int CeedGetJitAbsolutePath (Ceed ceed , const char * relative_file_path ,
280280 char * * absolute_file_path ) {
281281 int ierr ;
282+ Ceed ceed_parent ;
282283
283284 // Debug
284285 CeedDebug256 (ceed , 1 , "---------- Ceed JiT ----------\n" );
285286 CeedDebug256 (ceed , 1 , "Relative JiT source file: " );
286287 CeedDebug256 (ceed , 255 , "%s\n" , relative_file_path );
287288
288289
289- for (CeedInt i = 0 ; i < ceed -> num_jit_source_roots ; i ++ ) {
290+ ierr = CeedGetParent (ceed , & ceed_parent ); CeedChk (ierr );
291+ for (CeedInt i = 0 ; i < ceed_parent -> num_jit_source_roots ; i ++ ) {
290292 bool is_valid ;
291293
292294 // Debug
293295 CeedDebug256 (ceed , 1 , "Checking JiT root: " );
294- CeedDebug256 (ceed , 255 , "%s\n" , ceed -> jit_source_roots [i ]);
296+ CeedDebug256 (ceed , 255 , "%s\n" , ceed_parent -> jit_source_roots [i ]);
295297
296298 // Build and check absolute path with current root
297- ierr = CeedPathConcatenate (ceed , ceed -> jit_source_roots [i ],
299+ ierr = CeedPathConcatenate (ceed , ceed_parent -> jit_source_roots [i ],
298300 relative_file_path , absolute_file_path );
299301 CeedChk (ierr );
300302 ierr = CeedCheckFilePath (ceed , * absolute_file_path , & is_valid ); CeedChk (ierr );
0 commit comments