Changes in / [e7b1f5b:b060d3c]


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GNUmakefile

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

    rbe75350 r9796d0a  
    3838# ***************************************************************************** 
    3939 
    40 from __future__ import print_function 
    4140import numpy as np 
    4241import ctypes as ct 
    43 import os,sys 
     42import os 
    4443 
    4544#Define where the library is and load it 
     
    7372 
    7473def 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') 
    7874    var_size = libpygio.get_elem_num(file_name) 
    7975    var_type = libpygio.get_variable_type(file_name,var_name) 
    8076    field_count = libpygio.get_variable_field_count(file_name,var_name) 
    8177    if(var_type==10): 
    82         print("Variable not found") 
     78        print "Variable not found" 
    8379        return 
    8480    elif(var_type==9): 
    85         print("variable type not known (not int32/int64/float/double)") 
     81        print "variable type not known (not int32/int64/float/double)" 
    8682    elif(var_type==0): 
    8783        #float 
     
    106102 
    107103def 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') 
    111104    var_size = libpygio.get_elem_num(file_name) 
    112105    var_type = libpygio.get_variable_type(file_name,var_name) 
     
    114107 
    115108def gio_inspect(file_name): 
    116     if sys.version_info[0] == 3: 
    117         file_name=bytes(file_name,'ascii') 
    118109    libpygio.inspect_gio(file_name) 
    119110 
Note: See TracChangeset for help on using the changeset viewer.