1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| call mpas_log_write('Allocating fields ...') allocated_bytes = 0_I8KIND
call mpas_block_creator_allocate_pool_fields(block_ptr % structs, block_ptr % dimensions, allocated_bytes, ierr) if (ierr /= 0) then call mpas_log_write('Allocation of fields failed for core ' // trim(block_ptr % domain % core % coreName), MPAS_LOG_CRIT) end if
call mpas_log_write(' $i MB allocated for fields on this task', intArgs=[int(allocated_bytes / 1000000_I8KIND)]) if (domain % dminfo % nprocs > 1) then call mpas_dmpar_sum_int(domain % dminfo, int(allocated_bytes / 1000000_I8KIND), total_allocated_mb) call mpas_log_write(' $i MB total allocated for fields across all tasks', intArgs=[total_allocated_mb]) end if call mpas_log_write(' ----- done allocating fields -----') call mpas_log_write('')
|