@@ -135,7 +135,7 @@ int PIOc_createfile_impl(int iosysid, int *ncidp, const int *iotype, const char
135135
136136 GPTLstart (" PIO:PIOc_createfile" );
137137 GPTLstart (" PIO:write_total" );
138- if (*iotype == PIO_IOTYPE_ADIOS)
138+ if (( *iotype == PIO_IOTYPE_ADIOS) || (*iotype == PIO_IOTYPE_ADIOSC) )
139139 {
140140 GPTLstart (" PIO:PIOc_createfile_adios" );
141141 GPTLstart (" PIO:write_total_adios" );
@@ -146,7 +146,7 @@ int PIOc_createfile_impl(int iosysid, int *ncidp, const int *iotype, const char
146146 {
147147 GPTLstop (" PIO:PIOc_createfile" );
148148 GPTLstop (" PIO:write_total" );
149- if (*iotype == PIO_IOTYPE_ADIOS)
149+ if (( *iotype == PIO_IOTYPE_ADIOS) || (*iotype == PIO_IOTYPE_ADIOSC) )
150150 {
151151 GPTLstop (" PIO:PIOc_createfile_adios" );
152152 GPTLstop (" PIO:write_total_adios" );
@@ -165,7 +165,7 @@ int PIOc_createfile_impl(int iosysid, int *ncidp, const int *iotype, const char
165165 GPTLstop (" PIO:write_total" );
166166 spio_ltimer_stop (ios->io_fstats ->wr_timer_name );
167167 spio_ltimer_stop (ios->io_fstats ->tot_timer_name );
168- if (*iotype == PIO_IOTYPE_ADIOS)
168+ if (( *iotype == PIO_IOTYPE_ADIOS) || (*iotype == PIO_IOTYPE_ADIOSC) )
169169 {
170170 GPTLstop (" PIO:PIOc_createfile_adios" );
171171 GPTLstop (" PIO:write_total_adios" );
@@ -188,7 +188,7 @@ int PIOc_createfile_impl(int iosysid, int *ncidp, const int *iotype, const char
188188 {
189189 GPTLstop (" PIO:PIOc_createfile" );
190190 GPTLstop (" PIO:write_total" );
191- if (*iotype == PIO_IOTYPE_ADIOS)
191+ if (( *iotype == PIO_IOTYPE_ADIOS) || (*iotype == PIO_IOTYPE_ADIOSC) )
192192 {
193193 GPTLstop (" PIO:PIOc_createfile_adios" );
194194 GPTLstop (" PIO:write_total_adios" );
@@ -204,7 +204,7 @@ int PIOc_createfile_impl(int iosysid, int *ncidp, const int *iotype, const char
204204 GPTLstop (" PIO:write_total" );
205205 spio_ltimer_stop (ios->io_fstats ->wr_timer_name );
206206 spio_ltimer_stop (ios->io_fstats ->tot_timer_name );
207- if (*iotype == PIO_IOTYPE_ADIOS)
207+ if (( *iotype == PIO_IOTYPE_ADIOS) || (*iotype == PIO_IOTYPE_ADIOSC) )
208208 {
209209 GPTLstop (" PIO:PIOc_createfile_adios" );
210210 GPTLstop (" PIO:write_total_adios" );
@@ -290,7 +290,7 @@ static int sync_file(int ncid)
290290 spio_ltimer_start (file->io_fstats ->tot_timer_name );
291291
292292#ifdef _ADIOS2
293- if (file->iotype == PIO_IOTYPE_ADIOS)
293+ if (( file->iotype == PIO_IOTYPE_ADIOS) || (file-> iotype == PIO_IOTYPE_ADIOSC) )
294294 {
295295 if (file->mode & PIO_WRITE)
296296 {
@@ -468,7 +468,7 @@ int PIOc_closefile_impl(int ncid)
468468 ios = file->iosystem ;
469469 assert (ios);
470470
471- if (file->iotype == PIO_IOTYPE_ADIOS)
471+ if (( file->iotype == PIO_IOTYPE_ADIOS) || (file-> iotype == PIO_IOTYPE_ADIOSC) )
472472 {
473473 GPTLstart (" PIO:PIOc_closefile_adios" );
474474
@@ -499,7 +499,7 @@ int PIOc_closefile_impl(int ncid)
499499 sync_file (ncid);
500500 }
501501
502- if (file->iotype == PIO_IOTYPE_ADIOS)
502+ if (( file->iotype == PIO_IOTYPE_ADIOS) || (file-> iotype == PIO_IOTYPE_ADIOSC) )
503503 {
504504#ifndef _ADIOS_BP2NC_TEST
505505 if (file->mode & PIO_WRITE)
@@ -533,7 +533,7 @@ int PIOc_closefile_impl(int ncid)
533533 PIO_SEND_ASYNC_MSG (ios, msg, &ierr, ncid);
534534 if (ierr != PIO_NOERR)
535535 {
536- if (file->iotype == PIO_IOTYPE_ADIOS)
536+ if (( file->iotype == PIO_IOTYPE_ADIOS) || (file-> iotype == PIO_IOTYPE_ADIOSC) )
537537 {
538538 GPTLstop (" PIO:PIOc_closefile_adios" );
539539
@@ -572,7 +572,7 @@ int PIOc_closefile_impl(int ncid)
572572
573573 /* ADIOS: assume all procs are also IO tasks */
574574#ifdef _ADIOS2
575- if (file->iotype == PIO_IOTYPE_ADIOS)
575+ if (( file->iotype == PIO_IOTYPE_ADIOS) || (file-> iotype == PIO_IOTYPE_ADIOSC) )
576576 {
577577 adios2_error adiosErr = adios2_error_none;
578578
@@ -585,7 +585,7 @@ int PIOc_closefile_impl(int ncid)
585585 ierr = begin_adios2_step (file, NULL );
586586 if (ierr != PIO_NOERR)
587587 {
588- if (file->iotype == PIO_IOTYPE_ADIOS)
588+ if (( file->iotype == PIO_IOTYPE_ADIOS) || (file-> iotype == PIO_IOTYPE_ADIOSC) )
589589 {
590590 GPTLstop (" PIO:PIOc_closefile_adios" );
591591 GPTLstop (" PIO:write_total_adios" );
@@ -619,7 +619,7 @@ int PIOc_closefile_impl(int ncid)
619619 attributeH = adios2_define_attribute (file->ioH , " /__pio__/fillmode" , adios2_type_int32_t , &file->fillmode );
620620 if (attributeH == NULL )
621621 {
622- if (file->iotype == PIO_IOTYPE_ADIOS)
622+ if (( file->iotype == PIO_IOTYPE_ADIOS) || (file-> iotype == PIO_IOTYPE_ADIOSC) )
623623 {
624624 GPTLstop (" PIO:PIOc_closefile_adios" );
625625 GPTLstop (" PIO:write_total_adios" );
@@ -680,7 +680,7 @@ int PIOc_closefile_impl(int ncid)
680680 GPTLstop (" end_adios2_step_PIOc_closefile" );
681681 if (ierr != PIO_NOERR)
682682 {
683- if (file->iotype == PIO_IOTYPE_ADIOS)
683+ if (( file->iotype == PIO_IOTYPE_ADIOS) || (file-> iotype == PIO_IOTYPE_ADIOSC) )
684684 {
685685 GPTLstop (" PIO:PIOc_closefile_adios" );
686686 GPTLstop (" PIO:write_total_adios" );
@@ -709,7 +709,7 @@ int PIOc_closefile_impl(int ncid)
709709 adiosErr = adios2_close (file->engineH );
710710 if (adiosErr != adios2_error_none)
711711 {
712- if (file->iotype == PIO_IOTYPE_ADIOS)
712+ if (( file->iotype == PIO_IOTYPE_ADIOS) || (file-> iotype == PIO_IOTYPE_ADIOSC) )
713713 {
714714 GPTLstop (" PIO:PIOc_closefile_adios" );
715715 GPTLstop (" PIO:write_total_adios" );
@@ -911,7 +911,7 @@ int PIOc_closefile_impl(int ncid)
911911 LOG ((1 , " DONE CONVERTING: %s" , file->filename ));
912912 if (ierr != PIO_NOERR)
913913 {
914- if (file->iotype == PIO_IOTYPE_ADIOS)
914+ if (( file->iotype == PIO_IOTYPE_ADIOS) || (file-> iotype == PIO_IOTYPE_ADIOSC) )
915915 {
916916 GPTLstop (" PIO:PIOc_closefile_adios" );
917917 GPTLstop (" PIO:write_total_adios" );
@@ -941,7 +941,7 @@ int PIOc_closefile_impl(int ncid)
941941 file->filename = NULL ;
942942 }
943943
944- if (file->iotype == PIO_IOTYPE_ADIOS)
944+ if (( file->iotype == PIO_IOTYPE_ADIOS) || (file-> iotype == PIO_IOTYPE_ADIOSC) )
945945 {
946946 GPTLstop (" PIO:PIOc_closefile_adios" );
947947
@@ -983,7 +983,7 @@ int PIOc_closefile_impl(int ncid)
983983 }
984984#endif
985985
986- assert (file->iotype != PIO_IOTYPE_ADIOS);
986+ assert (( file->iotype != PIO_IOTYPE_ADIOS) && (file-> iotype != PIO_IOTYPE_ADIOSC) );
987987
988988 /* If this is an IO task, then call the netCDF function. */
989989 if (ios->ioproc )
@@ -1243,7 +1243,7 @@ int PIOc_sync_impl(int ncid)
12431243 if (file->mode & PIO_WRITE)
12441244 {
12451245 GPTLstart (" PIO:write_total" );
1246- if (file->iotype == PIO_IOTYPE_ADIOS)
1246+ if (( file->iotype == PIO_IOTYPE_ADIOS) || (file-> iotype == PIO_IOTYPE_ADIOSC) )
12471247 GPTLstart (" PIO:write_total_adios" );
12481248 }
12491249
@@ -1252,7 +1252,7 @@ int PIOc_sync_impl(int ncid)
12521252 if (file->mode & PIO_WRITE)
12531253 {
12541254 GPTLstop (" PIO:write_total" );
1255- if (file->iotype == PIO_IOTYPE_ADIOS)
1255+ if (( file->iotype == PIO_IOTYPE_ADIOS) || (file-> iotype == PIO_IOTYPE_ADIOSC) )
12561256 GPTLstop (" PIO:write_total_adios" );
12571257 }
12581258
0 commit comments