Changes in / [b060d3c:e7b1f5b]


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GNUmakefile

    r2c47b73 re7b1f5b  
    6363BASE_CPPFLAGS := $(BLOSC_CPPFLAGS) -I. -D__STDC_CONSTANT_MACROS 
    6464 
     65UNAME_S := $(shell uname -s) 
     66ifeq ($(UNAME_S),Linux) 
     67    OPENMPFLAG=-fopenmp 
     68endif 
     69 
    6570FEDIR = frontend 
    66 FE_CFLAGS := -g -fPIC -O3 -fopenmp -std=gnu99 
     71FE_CFLAGS := -g -fPIC -O3 $(OPENMPFLAG) -std=gnu99 
    6772FE_CPPFLAGS := $(BASE_CPPFLAGS) -Ithirdparty/sqlite -DGENERICIO_NO_MPI 
    6873 
    6974MPIDIR = mpi 
    70 MPI_CFLAGS := -g -O3 -fopenmp -std=gnu99 
     75MPI_CFLAGS := -g -O3 $(OPENMPFLAG) -std=gnu99 
    7176MPI_CPPFLAGS := $(BASE_CPPFLAGS) 
    7277 
  • python/genericio.py

    r9796d0a rbe75350  
    3838# ***************************************************************************** 
    3939 
     40from __future__ import print_function 
    4041import numpy as np 
    4142import ctypes as ct 
    42 import os 
     43import os,sys 
    4344 
    4445#Define where the library is and load it 
     
    7273 
    7374def gio_read(file_name,var_name): 
     75    if sys.version_info[0] == 3: 
     76        file_name = bytes(file_name,'ascii') 
     77        var_name = bytes(var_name,'ascii') 
    7478    var_size = libpygio.get_elem_num(file_name) 
    7579    var_type = libpygio.get_variable_type(file_name,var_name) 
    7680    field_count = libpygio.get_variable_field_count(file_name,var_name) 
    7781    if(var_type==10): 
    78         print "Variable not found" 
     82        print("Variable not found") 
    7983        return 
    8084    elif(var_type==9): 
    81         print "variable type not known (not int32/int64/float/double)" 
     85        print("variable type not known (not int32/int64/float/double)") 
    8286    elif(var_type==0): 
    8387        #float 
     
    102106 
    103107def gio_has_variable(file_name,var_name): 
     108    if sys.version_info[0] == 3: 
     109        file_name=bytes(file_name,'ascii') 
     110        var_name=bytes(var_name,'ascii') 
    104111    var_size = libpygio.get_elem_num(file_name) 
    105112    var_type = libpygio.get_variable_type(file_name,var_name) 
     
    107114 
    108115def gio_inspect(file_name): 
     116    if sys.version_info[0] == 3: 
     117        file_name=bytes(file_name,'ascii') 
    109118    libpygio.inspect_gio(file_name) 
    110119 
Note: See TracChangeset for help on using the changeset viewer.