#ifdef WINDOWS
#define _CRTDBG_MAP_ALLOC
#endif 

#include <stdio.h>
#include <stdlib.h>

#include "petsc.h"
#include "petscvec.h"
#include "petscmat.h"
#include "probStructs.h"
#include "petscInterface.h"

#ifdef WINDOWS 
#include <crtdbg.h>
#endif 


# undef __FUNCT__
# define __FUNCT__ "main"
int main(int argv, char **args){

#ifdef WINDOWS
	_CrtSetDbgFlag (_CRTDBG_ALLOC_MEM_DF|_CRTDBG_LEAK_CHECK_DF|_CRTDBG_CHECK_ALWAYS_DF);
	_CrtSetReportFile(_CRT_WARN,_CRTDBG_FILE_STDOUT);
	_CrtSetReportFile(_CRT_ERROR,_CRTDBG_FILE_STDOUT);
	printf("WINDOWS directive is defined \n");
#endif
	PetscErrorCode ierr;
	PetscInitialize(&argv,&args,0,0);

	ierr=testSEQVectorIORoutines();CHKERRQ(ierr);
	ierr=testSEQMatrixIORoutines();CHKERRQ(ierr);

	PetscFinalize(); 

	return 0;
}
