Revision 1169

branches/threaded2merge/tests/gtests/test_adthread_manager.cpp (revision 1169)
1
#include <gtest/gtest.h>
2
#include <fvar.hpp>
3
#include <adthread.h>
4

  
5
class test_adthread_manager: public ::testing::Test {};
6

  
7
TEST_F(test_adthread_manager, constructor)
8
{
9
  adpthread_manager am(1, 1);
10
}
branches/threaded2merge/tests/gtests/Makefile (revision 1169)
3 3
all: gtest-all
4 4
	./gtest-all
5 5

  
6
gtest-all: main.cpp test_adstring_strcase.cpp test_fmm_control.cpp test_atan2.cpp test_adstring_array.cpp test_dlist.cpp test_ad_comm.cpp
6
gtest-all: main.cpp test_adstring_strcase.cpp test_fmm_control.cpp test_atan2.cpp test_adstring_array.cpp test_dlist.cpp test_ad_comm.cpp test_adthread_manager.cpp
7 7
	cp $(GTEST_DIR)/gtest-all.o .
8 8
	CXXFLAGS=-I$(GTEST_DIR)/include ../../admb gtest-all.o $^
9 9

  
branches/threaded2merge/tests/GNUmakefile (revision 1169)
1
.PHONY: gtests
2

  
1 3
GTEST_DIR=googletest-read-only
2 4

  
3
all: test-expm test-cov_re
5
all: test-expm test-cov_re gtests
4 6

  
5
run-gtests: $(GTEST_DIR)/gtest-all.o
7
gtests: $(GTEST_DIR)/gtest-all.o
6 8
	$(MAKE) --directory=gtests
7 9

  
8
all2: test-expm test-cov_re
9

  
10 10
gtest-colfill: googletest-read-only
11 11
	$(MAKE) --directory=colfill
12 12

  
branches/threaded2merge/src/GNUmakefile (revision 1169)
325 325
	cp linad99/dfpool.h ${DISK}/include
326 326
	cp linad99/trunc.hpp ${DISK}/include
327 327
	cp linad99/factors.h ${DISK}/include
328
	cp linad99/adthread.h ${DISK}/include
328 329
	cp tools99/adoption.hpp ${DISK}/include
329 330
	cp tools99/adstring.hpp ${DISK}/include
330 331
	cp tools99/cifstrem.h ${DISK}/include
branches/threaded2merge/src/linad99/fvar.hpp (revision 1169)
9754 9754
 * Description not yet available.
9755 9755
 * \param
9756 9756
 */
9757
class adpthread_manager;
9757 9758
class ad_comm
9758 9759
{
9759 9760
 protected:
......
9774 9775
   virtual void get_slave_assignments(void);
9775 9776
#endif
9776 9777
   static adpvm_manager *pvm_manager;
9778
   static adpthread_manager *pthread_manager;
9777 9779
   static adstring subdir;
9778 9780
   static streampos change_datafile_name(const adstring & s,
9779 9781
					 const streampos & off = 0);
branches/threaded2merge/src/linad99/thread_stuff7.cpp (revision 1169)
1
#include <admodel.h>
2
#include <cstddef>
3
#include "adthread.h"
4
#if !defined(OPT_LIB)
5
#  if !defined(CHK_ID_STRING)
6
#    define CHK_ID_STRING
7
#  endif
8
#endif
9

  
10

  
11
void adjoint_send_dvar5_array_to_master(void)
12
{
13
  verify_identifier_string("CV");
14
  adpthread_manager * ptr=(adpthread_manager*)(restore_pointer_value());
15
  ptr->adjoint_send_dvar5_array_to_master();
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff